Skip to content

Commit 5e80fc8

Browse files
committed
[opt] Fix opt for LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES=Off.
Building with -DLLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES=Off should not prevent use of opt plugins. This fix uses the approach implemented in #101741. rdar://135841478
1 parent 8168088 commit 5e80fc8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/tools/opt/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ add_llvm_tool(opt
4646
intrinsics_gen
4747
SUPPORT_PLUGINS
4848

49+
EXPORT_SYMBOLS
4950
)
5051
target_link_libraries(opt PRIVATE LLVMOptDriver)
5152

5253
setup_host_tool(opt OPT opt_exe opt_target)
53-
54-
export_executable_symbols_for_plugins(opt)

0 commit comments

Comments
 (0)