mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
LIT runs each unittest once to enumerate all tests. When the test executable crashes during this run, no tests will be found and all tests in that executable will be skipped. The SwiftDemangleTests executable depends on a shared library. This patch changes the LIT configuration to set the shared library path to the lib directory in the build artifacts and thus re-enables the SwiftDemangleTests unit test.
13 lines
303 B
CMake
13 lines
303 B
CMake
if(TARGET swiftDemangle)
|
|
add_swift_unittest(SwiftDemangleTests
|
|
DemangleTest.cpp
|
|
)
|
|
set_target_properties(SwiftDemangleTests
|
|
PROPERTIES BUILD_WITH_INSTALL_RPATH On INSTALL_RPATH "${SWIFT_LIBRARY_OUTPUT_INTDIR}"
|
|
)
|
|
|
|
target_link_libraries(SwiftDemangleTests
|
|
swiftDemangle
|
|
)
|
|
endif()
|