mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use the imported library to track header search path and library search paths and dependencies rather than replicating that knowledge.
21 lines
456 B
CMake
21 lines
456 B
CMake
add_swift_host_library(swiftImmediate STATIC
|
|
Immediate.cpp
|
|
REPL.cpp
|
|
LLVM_LINK_COMPONENTS
|
|
executionengine
|
|
linker
|
|
mcjit
|
|
transformutils)
|
|
target_link_libraries(swiftImmediate PRIVATE
|
|
swiftFrontend
|
|
swiftIDE
|
|
swiftIRGen
|
|
swiftSILGen
|
|
swiftSILOptimizer)
|
|
if(LibEdit_FOUND AND LibEdit_HAS_UNICODE)
|
|
target_compile_definitions(swiftImmediate PRIVATE
|
|
HAVE_LIBEDIT)
|
|
target_link_libraries(swiftImmediate PRIVATE
|
|
libedit)
|
|
endif()
|