We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d3996 commit 88d168fCopy full SHA for 88d168f
toolchain/osx_cc_wrapper.sh.tpl
@@ -57,7 +57,7 @@ function parse_option() {
57
if [[ -f %{toolchain_path_prefix}bin/clang ]]; then
58
execroot_path=""
59
execroot_abs_path="${PWD}/"
60
-elif [[ ${BASH_SOURCE[0]} == "/"* ]]; then
+elif [[ ${BASH_SOURCE[0]} == "/"* ]] || [[ ${BASH_SOURCE[0]} == "../"* ]]; then
61
# Some consumers of `CcToolchainConfigInfo` (e.g. `cmake` from rules_foreign_cc)
62
# change CWD and call $CC (this script) with its absolute path.
63
# For cases like this, we'll try to find `clang` through an absolute path.
0 commit comments