File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1038,14 +1038,9 @@ macro(add_llvm_executable name)
1038
1038
add_llvm_symbol_exports ( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} )
1039
1039
endif (LLVM_EXPORTED_SYMBOL_FILE )
1040
1040
1041
- if (NOT LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES )
1042
- if (LLVM_LINKER_SUPPORTS_NO_EXPORTED_SYMBOLS )
1041
+ if (NOT LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES AND LLVM_LINKER_SUPPORTS_NO_EXPORTED_SYMBOLS )
1043
1042
set_property (TARGET ${name} APPEND_STRING PROPERTY
1044
1043
LINK_FLAGS " -Wl,-no_exported_symbols" )
1045
- else ()
1046
- message (FATAL_ERROR
1047
- "LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES cannot be disabled when linker does not support \" -no_exported_symbols\" " )
1048
- endif ()
1049
1044
endif ()
1050
1045
1051
1046
if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB )
You can’t perform that action at this time.
0 commit comments