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 05e4a10 commit a47c358Copy full SHA for a47c358
cmake/modules/AddSwiftHostLibrary.cmake
@@ -104,6 +104,14 @@ function(add_swift_syntax_library name)
104
BUILD_WITH_INSTALL_RPATH YES
105
)
106
107
+ if(SWIFT_HOST_LIBRARIES_RPATH)
108
+ # Don't add builder's stdlib RPATH automatically.
109
+ target_compile_options(${name} PRIVATE -no-toolchain-stdlib-rpath)
110
+ set_property(TARGET ${name}
111
+ PROPERTY INSTALL_RPATH "${SWIFT_HOST_LIBRARIES_RPATH}"
112
+ )
113
+ endif()
114
+
115
get_target_property(lib_type ${name} TYPE)
116
if(lib_type STREQUAL SHARED_LIBRARY)
117
if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
0 commit comments