Skip to content

[TF] Use @rpath as install_name directory for standard library dylibs. #31301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,16 @@ for host in "${ALL_HOSTS[@]}"; do
-DLIBDISPATCH_CMAKE_BUILD_TYPE:STRING="${LIBDISPATCH_BUILD_TYPE}"

# SWIFT_ENABLE_TENSORFLOW
# CMake options specific to `tensorflow` branch here.

# Propagate "SWIFT_ENABLE_TENSORFLOW=TRUE" to CMake.
# This affects lit tests, adding "tensorflow" as an available feature.
-DSWIFT_ENABLE_TENSORFLOW:BOOL=TRUE

# Always use "@rpath" as the directory of the install_name for standard library dylibs.
# The default value is "/usr/lib/swift", which doesn't work for toolchains that provide
# custom standard library modules or that make changes to libswiftCore.dylib.
-DSWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR:STRING="@rpath"
# SWIFT_ENABLE_TENSORFLOW END
"${swift_cmake_options[@]}"
)
Expand Down