Skip to content
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

Closed

Conversation

thii
Copy link
Member

@thii thii commented May 11, 2021

/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.

@google-cla google-cla bot added the cla: yes label May 11, 2021
@@ -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}") \
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@thii thii force-pushed the use-xcrun-to-invoke-install_name_tool branch from 5fe632b to 2af0989 Compare May 11, 2021 01:04
@thii thii marked this pull request as ready for review May 11, 2021 01:35
@@ -27,7 +27,7 @@
#
set -eu

INSTALL_NAME_TOOL="/usr/bin/install_name_tool"
INSTALL_NAME_TOOL="/usr/bin/xcrun install_name_tool"
Copy link
Member

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.
@thii thii force-pushed the use-xcrun-to-invoke-install_name_tool branch from 2af0989 to 3a867bd Compare February 23, 2022 13:10
@keertk
Copy link
Member

keertk commented Dec 7, 2022

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.

@keith
Copy link
Member

keith commented Dec 7, 2022

#16951

@thii thii deleted the use-xcrun-to-invoke-install_name_tool branch December 8, 2022 00:57
Wyverald pushed a commit that referenced this pull request Jan 12, 2023
`/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
ShreeM01 added a commit that referenced this pull request Jan 19, 2023
`/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>
hvadehra pushed a commit that referenced this pull request Feb 14, 2023
`/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-user-response Awaiting a response from the author cla: yes team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants