File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -942,13 +942,6 @@ if (LLVM_LINK_LLVM_DYLIB AND BUILD_SHARED_LIBS)
942942 message (FATAL_ERROR "Cannot enable BUILD_SHARED_LIBS with LLVM_LINK_LLVM_DYLIB. We recommend disabling BUILD_SHARED_LIBS." )
943943endif ()
944944
945- set (LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS OFF )
946- if (LLVM_BUILD_LLVM_DYLIB OR LLVM_BUILD_SHARED_LIBS OR LLVM_ENABLE_PLUGINS)
947- # Export annotations for LLVM must be enabled if building as a shared lib or
948- # enabling plugins.
949- set (LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS ON )
950- endif ()
951-
952945option (LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF )
953946if (CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND (LLVM_ENABLE_ASSERTIONS OR CMAKE_CONFIGURATION_TYPES )))
954947 set (LLVM_USE_HOST_TOOLS ON )
@@ -1063,6 +1056,13 @@ else()
10631056endif ()
10641057option (LLVM_ENABLE_PLUGINS "Enable plugin support" ${LLVM_ENABLE_PLUGINS_default} )
10651058
1059+ set (LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS OFF )
1060+ if (LLVM_BUILD_LLVM_DYLIB OR LLVM_BUILD_SHARED_LIBS OR LLVM_ENABLE_PLUGINS)
1061+ # Export annotations for LLVM must be enabled if building as a shared lib or
1062+ # enabling plugins.
1063+ set (LLVM_ENABLE_LLVM_EXPORT_ANNOTATIONS ON )
1064+ endif ()
1065+
10661066set (LLVM_ENABLE_NEW_PASS_MANAGER TRUE CACHE BOOL
10671067 "Enable the new pass manager by default." )
10681068if (NOT LLVM_ENABLE_NEW_PASS_MANAGER)
You can’t perform that action at this time.
0 commit comments