diff --git a/products/llbuildSwift/CMakeLists.txt b/products/llbuildSwift/CMakeLists.txt index 1e6dad1e..918bde56 100644 --- a/products/llbuildSwift/CMakeLists.txt +++ b/products/llbuildSwift/CMakeLists.txt @@ -57,6 +57,7 @@ else() swiftDispatch Foundation) if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) + target_link_options(llbuildSwift PRIVATE "SHELL:-no-toolchain-stdlib-rpath") set_target_properties(llbuildSwift PROPERTIES INSTALL_RPATH "$ORIGIN:$ORIGIN/../../$") endif()