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)
942
942
message (FATAL_ERROR "Cannot enable BUILD_SHARED_LIBS with LLVM_LINK_LLVM_DYLIB. We recommend disabling BUILD_SHARED_LIBS." )
943
943
endif ()
944
944
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
-
952
945
option (LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF )
953
946
if (CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND (LLVM_ENABLE_ASSERTIONS OR CMAKE_CONFIGURATION_TYPES )))
954
947
set (LLVM_USE_HOST_TOOLS ON )
@@ -1063,6 +1056,13 @@ else()
1063
1056
endif ()
1064
1057
option (LLVM_ENABLE_PLUGINS "Enable plugin support" ${LLVM_ENABLE_PLUGINS_default} )
1065
1058
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
+
1066
1066
set (LLVM_ENABLE_NEW_PASS_MANAGER TRUE CACHE BOOL
1067
1067
"Enable the new pass manager by default." )
1068
1068
if (NOT LLVM_ENABLE_NEW_PASS_MANAGER )
You can’t perform that action at this time.
0 commit comments