Skip to content

Commit 88d168f

Browse files
committed
add extra case for ../
1 parent 69d3996 commit 88d168f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/osx_cc_wrapper.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function parse_option() {
5757
if [[ -f %{toolchain_path_prefix}bin/clang ]]; then
5858
execroot_path=""
5959
execroot_abs_path="${PWD}/"
60-
elif [[ ${BASH_SOURCE[0]} == "/"* ]]; then
60+
elif [[ ${BASH_SOURCE[0]} == "/"* ]] || [[ ${BASH_SOURCE[0]} == "../"* ]]; then
6161
# Some consumers of `CcToolchainConfigInfo` (e.g. `cmake` from rules_foreign_cc)
6262
# change CWD and call $CC (this script) with its absolute path.
6363
# For cases like this, we'll try to find `clang` through an absolute path.

0 commit comments

Comments
 (0)