We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ed6f6 commit 8f7b303Copy full SHA for 8f7b303
cmake/modules/AddSwift.cmake
@@ -912,9 +912,17 @@ function(add_swift_host_tool executable)
912
endif()
913
914
if(SWIFT_SWIFT_PARSER)
915
+ set(extra_relative_rpath "")
916
+ if(NOT ${ASHT_BOOTSTRAPPING} STREQUAL "")
917
+ if (${executable} MATCHES "-bootstrapping")
918
+ set(extra_relative_rpath "../")
919
+ endif()
920
921
+
922
set_property(
923
TARGET ${executable}
- APPEND PROPERTY INSTALL_RPATH "@executable_path/../lib/swift/host")
924
+ APPEND PROPERTY INSTALL_RPATH
925
+ "@executable_path/../${extra_relative_rpath}lib/swift/host")
926
927
928
if(ASHT_THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
0 commit comments