0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-27 05:26:07 +00:00
Steven Wu 01b488faab
Reapply "[CMake] Fold export_executable_symbols_* into function args. ()" ()
Fix the builds with LLVM_TOOL_LLVM_DRIVER_BUILD enabled.

LLVM_ENABLE_EXPORTED_SYMBOLS_IN_EXECUTABLES is not completely
compatible with export_executable_symbols as the later will be ignored
if the previous is set to NO.

Fix the issue by passing if symbols need to be exported to
llvm_add_exectuable so the link flag can be determined directly
without calling export_executable_symbols_* later.
2024-08-07 09:12:15 -07:00

42 lines
607 B
CMake

set(LLVM_LINK_COMPONENTS
AllTargetsAsmParsers
AllTargetsCodeGens
AllTargetsDescs
AllTargetsInfos
Analysis
BitWriter
CodeGen
Extensions
Core
IPO
IRReader
AggressiveInstCombine
InstCombine
Instrumentation
Linker
ObjCARCOpts
ScalarOpts
Support
Target
TargetParser
TransformUtils
Vectorize
)
add_llvm_tool(bugpoint
BugDriver.cpp
CrashDebugger.cpp
ExecutionDriver.cpp
ExtractFunction.cpp
FindBugs.cpp
Miscompilation.cpp
OptimizerDriver.cpp
ToolRunner.cpp
bugpoint.cpp
DEPENDS
intrinsics_gen
SUPPORT_PLUGINS
EXPORT_SYMBOLS_FOR_PLUGINS
)