Skip to content

Commit f7f77a3

Browse files
committed
add fix for linux
1 parent 88d168f commit f7f77a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/cc_wrapper.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ set -euo pipefail
3434

3535
if [[ -f %{toolchain_path_prefix}bin/clang ]]; then
3636
execroot_path=""
37-
elif [[ ${BASH_SOURCE[0]} == "/"* ]]; then
37+
elif [[ ${BASH_SOURCE[0]} == "/"* ]] || [[ ${BASH_SOURCE[0]} == "../"* ]]; then
3838
# Some consumers of `CcToolchainConfigInfo` (e.g. `cmake` from rules_foreign_cc)
3939
# change CWD and call $CC (this script) with its absolute path.
4040
# For cases like this, we'll try to find `clang` through an absolute path.

0 commit comments

Comments
 (0)