From 21bd070c5df7dc919e26ee2147f9a5d164e5e54b Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 3 Mar 2022 16:04:58 -0500 Subject: [PATCH] fixup! build: use ccache in make-v8.sh on ppc64le and s390x --- tools/make-v8.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/make-v8.sh b/tools/make-v8.sh index b4bf8256eb5aec..ea4de42f303915 100755 --- a/tools/make-v8.sh +++ b/tools/make-v8.sh @@ -25,11 +25,13 @@ if [ "$ARCH" = "s390x" ] || [ "$ARCH" = "ppc64le" ]; then # invoke, creating symbolic links placed at the front of PATH, if needed. # Avoid linking to ccache symbolic links as ccache decides which binary # to run based on the name of the link (i.e. `gcc`/`g++` in our case). + # shellcheck disable=SC2154 if [ "$CC" != "" ] && [ "$CC" != "gcc" ]; then # shellcheck disable=SC2154 CC_PATH=`command -v "$CC" gcc | grep -v ccache | head -n 1` ln -s "$CC_PATH" "$BUILD_TOOLS/gcc" fi + # shellcheck disable=SC2154 if [ "$CXX" != "" ] && [ "$CXX" != "g++" ]; then # shellcheck disable=SC2154 CXX_PATH=`command -v "$CXX" g++ | grep -v ccache | head -n 1` @@ -39,6 +41,7 @@ if [ "$ARCH" = "s390x" ] || [ "$ARCH" = "ppc64le" ]; then # Propagate ccache to gn. case "$CXX" in *ccache*) CC_WRAPPER="cc_wrapper=\"ccache\"" ;; + *) ;; esac g++ --version