mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For compiling codes required for macro support, we now need swiftc compiler in the build machine. Unlike Darwin OSes, where swiftCore runtime is guaranteed to be present in /usr/lib, Linux doesn't have ABI stability and the stdlib of the build machine is not at the specific location. So the built compiler cannot relies on the shared object in the toolchain.
14 lines
330 B
CMake
14 lines
330 B
CMake
if(TARGET swiftDemangle)
|
|
add_swift_unittest(SwiftDemangleTests IS_TARGET_TEST
|
|
DemangleTest.cpp
|
|
)
|
|
set_target_properties(SwiftDemangleTests
|
|
PROPERTIES BUILD_WITH_INSTALL_RPATH On INSTALL_RPATH "${SWIFT_LIBRARY_OUTPUT_INTDIR}"
|
|
)
|
|
|
|
target_link_libraries(SwiftDemangleTests
|
|
PRIVATE
|
|
swiftDemangle
|
|
)
|
|
endif()
|