File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,13 @@ if [ "$ARCH" = "s390x" ] || [ "$ARCH" = "ppc64le" ]; then
25
25
# invoke, creating symbolic links placed at the front of PATH, if needed.
26
26
# Avoid linking to ccache symbolic links as ccache decides which binary
27
27
# to run based on the name of the link (i.e. `gcc`/`g++` in our case).
28
+ # shellcheck disable=SC2154
28
29
if [ " $CC " != " " ] && [ " $CC " != " gcc" ]; then
29
30
# shellcheck disable=SC2154
30
31
CC_PATH=` command -v " $CC " gcc | grep -v ccache | head -n 1`
31
32
ln -s " $CC_PATH " " $BUILD_TOOLS /gcc"
32
33
fi
34
+ # shellcheck disable=SC2154
33
35
if [ " $CXX " != " " ] && [ " $CXX " != " g++" ]; then
34
36
# shellcheck disable=SC2154
35
37
CXX_PATH=` command -v " $CXX " g++ | grep -v ccache | head -n 1`
@@ -39,6 +41,7 @@ if [ "$ARCH" = "s390x" ] || [ "$ARCH" = "ppc64le" ]; then
39
41
# Propagate ccache to gn.
40
42
case " $CXX " in
41
43
* ccache* ) CC_WRAPPER=" cc_wrapper=\" ccache\" " ;;
44
+ * ) ;;
42
45
esac
43
46
44
47
g++ --version
You can’t perform that action at this time.
0 commit comments