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 88d168f commit f7f77a3Copy full SHA for f7f77a3
toolchain/cc_wrapper.sh.tpl
@@ -34,7 +34,7 @@ set -euo pipefail
34
35
if [[ -f %{toolchain_path_prefix}bin/clang ]]; then
36
execroot_path=""
37
-elif [[ ${BASH_SOURCE[0]} == "/"* ]]; then
+elif [[ ${BASH_SOURCE[0]} == "/"* ]] || [[ ${BASH_SOURCE[0]} == "../"* ]]; then
38
# Some consumers of `CcToolchainConfigInfo` (e.g. `cmake` from rules_foreign_cc)
39
# change CWD and call $CC (this script) with its absolute path.
40
# For cases like this, we'll try to find `clang` through an absolute path.
0 commit comments