mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 05:10:41 +00:00
8387c0d5ea
The MSVC linker won't produce a .lib file for an executable that doesn't export anything, and LLVM doesn't maintain dllexport annotations or .def files listing all C++ symbols. It also doesn't support exporting all symbols, like binutils ld. CMake 3.2 changed the Ninja generator to list both the .exe and .lib files as outputs of executable build targets. Ninja would always re-link executables with ENABLE_EXPORTS because the .lib output file was not present, and therefore the target was out of date. llvm-svn: 232662
19 lines
277 B
CMake
19 lines
277 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
ExecutionEngine
|
|
MC
|
|
MCJIT
|
|
Support
|
|
nativecodegen
|
|
)
|
|
|
|
# Enable EH and RTTI for this demo
|
|
set(LLVM_REQUIRES_EH 1)
|
|
set(LLVM_REQUIRES_RTTI 1)
|
|
|
|
add_llvm_example(ExceptionDemo
|
|
ExceptionDemo.cpp
|
|
)
|
|
|
|
export_executable_symbols(ExceptionDemo)
|