-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use xcrun
to invoke install_name_tool
#13462
Conversation
tools/cpp/osx_cc_wrapper.sh.tpl
Outdated
@@ -110,7 +110,7 @@ for rpath in ${RPATHS}; do | |||
if [[ -n "${libname-}" ]]; then | |||
libpath=$(get_library_path ${lib}) | |||
if [ -n "${libpath}" ]; then | |||
${INSTALL_NAME_TOOL} -change $(get_otool_path "${libpath}") \ | |||
"${INSTALL_NAME_TOOL}" -change $(get_otool_path "${libpath}") \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just in-line this? With this currently I think your quotes are off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
5fe632b
to
2af0989
Compare
tools/cpp/osx_cc_wrapper.sh.tpl
Outdated
@@ -27,7 +27,7 @@ | |||
# | |||
set -eu | |||
|
|||
INSTALL_NAME_TOOL="/usr/bin/install_name_tool" | |||
INSTALL_NAME_TOOL="/usr/bin/xcrun install_name_tool" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think it would be better to inline this now that it has a space to be more careful around folks accidentally quoting this
`/usr/bin/install_name_tool` is a shim; it invokes `install_name_tool` in the current active Xcode. This allows using this template file to configure toolchain on non-macOS. This doesn't change the behavior as both will end up invoking the same tool.
2af0989
to
3a867bd
Compare
Hi there! Thank you for contributing to the Bazel repository. We appreciate your time and effort. We're doing a clean up of old PRs and will be closing this one since it seems to have stalled. Please feel free to reopen if you’re still interested in pursuing this or if you'd like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
`/usr/bin/install_name_tool` is a shim; it invokes install_name_tool in the current active Xcode. This allows using this template file to configure toolchain on non-macOS. This doesn't change the behavior as both will end up invoking the same tool. replaces #13462 Closes #16951. PiperOrigin-RevId: 501557408 Change-Id: Ibf0b90aaf18bd703079296248cd66dc6f86359f1
`/usr/bin/install_name_tool` is a shim; it invokes install_name_tool in the current active Xcode. This allows using this template file to configure toolchain on non-macOS. This doesn't change the behavior as both will end up invoking the same tool. replaces #13462 Closes #16951. PiperOrigin-RevId: 501557408 Change-Id: Ibf0b90aaf18bd703079296248cd66dc6f86359f1 Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
`/usr/bin/install_name_tool` is a shim; it invokes install_name_tool in the current active Xcode. This allows using this template file to configure toolchain on non-macOS. This doesn't change the behavior as both will end up invoking the same tool. replaces #13462 Closes #16951. PiperOrigin-RevId: 501557408 Change-Id: Ibf0b90aaf18bd703079296248cd66dc6f86359f1
/usr/bin/install_name_tool
is a shim; it invokesinstall_name_tool
in the current active Xcode.
This allows using this template file to configure toolchain on
non-macOS. This doesn't change the behavior as both will end up invoking
the same tool.