2020-09-07 18:23:03 +02:00
|
|
|
commit 25ee7e8f610bf71816717f45946ee8e543889e89
|
|
|
|
Date: Wed May 6 12:06:09 2020 +0530
|
|
|
|
|
|
|
|
[CMake] fix runpath for ELF platforms
|
|
|
|
|
|
|
|
Remove the absolute path to the host toolchain's stdlib from libXCTest.so and add $ORIGIN.
|
|
|
|
|
2020-02-17 18:24:10 +01:00
|
|
|
diff --git a/swift-corelibs-xctest/CMakeLists.txt b/swift-corelibs-xctest/CMakeLists.txt
|
2020-09-07 18:23:03 +02:00
|
|
|
index 531e7c0..589930f 100644
|
2020-02-17 18:24:10 +01:00
|
|
|
--- a/swift-corelibs-xctest/CMakeLists.txt
|
|
|
|
+++ b/swift-corelibs-xctest/CMakeLists.txt
|
2021-01-29 15:04:54 +01:00
|
|
|
@@ -58,6 +58,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
2020-09-07 18:23:03 +02:00
|
|
|
Foundation)
|
2021-01-29 15:04:54 +01:00
|
|
|
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
|
|
|
|
target_link_options(XCTest PRIVATE "SHELL:-no-toolchain-stdlib-rpath")
|
2020-09-07 18:23:03 +02:00
|
|
|
+ set_target_properties(XCTest PROPERTIES INSTALL_RPATH "$ORIGIN")
|
2021-01-29 15:04:54 +01:00
|
|
|
endif()
|
2020-09-07 18:23:03 +02:00
|
|
|
endif()
|
2020-02-17 18:24:10 +01:00
|
|
|
set_target_properties(XCTest PROPERTIES
|