-
-
Notifications
You must be signed in to change notification settings - Fork 252
replace /bin/bash
shebang with /usr/bin/env bash
#543
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
base: master
Are you sure you want to change the base?
Conversation
This allows systems which don't have this location (e.g. NixOS) to run the scripts.
I suppose the failures are related to this, but I am not familiar with toolchains_llvm/toolchain/osx_cc_wrapper.sh.tpl Lines 165 to 167 in 0bdeae2
|
As you mostly pointed out already, using I'm not too familiar with the internals of I'm not sure if this is the cleanest solution possible, but if you really need Hope this helps! |
Would it be possible to rewrite these scripts so that they only require |
It's really only the two I think rewriting the two |
Thanks for your comments.
Probably only I'm not sure I'll have time to look into this in the near term, so feel free to take over if you're interested. |
Some Linux distributions, such as NixOS, do not provide /bin/bash. This commit aims to make the LLVM toolchain compatible with these platforms by only using POSIX-compatible features in the shell script and replacing the shebang with #!/bin/sh . This commit does not update the corresponding MacOS script, as all MacOS builds should have /bin/bash. Supercedes bazel-contrib#543.
Some Linux distributions, such as NixOS, do not provide /bin/bash. This commit aims to make the LLVM toolchain compatible with these platforms by only using POSIX-compatible features in the shell script and replacing the shebang with #!/bin/sh . This commit does not update the corresponding MacOS script, as all MacOS builds should have /bin/bash. Supercedes bazel-contrib#543.
This allows systems which don't have this location (e.g. NixOS) to run the scripts.