mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 04:16:46 +00:00

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.
18 lines
520 B
CMake
18 lines
520 B
CMake
add_custom_target(Kaleidoscope)
|
|
set_target_properties(Kaleidoscope PROPERTIES FOLDER "LLVM/Examples")
|
|
|
|
macro(add_kaleidoscope_chapter name)
|
|
add_dependencies(Kaleidoscope ${name})
|
|
add_llvm_example(${name} EXPORT_SYMBOLS ${ARGN})
|
|
endmacro(add_kaleidoscope_chapter name)
|
|
|
|
add_subdirectory(BuildingAJIT)
|
|
add_subdirectory(Chapter2)
|
|
add_subdirectory(Chapter3)
|
|
add_subdirectory(Chapter4)
|
|
add_subdirectory(Chapter5)
|
|
add_subdirectory(Chapter6)
|
|
add_subdirectory(Chapter7)
|
|
add_subdirectory(Chapter8)
|
|
add_subdirectory(Chapter9)
|