Skip to content

Commit 7558d8b

Browse files
Milad Farazmandtargos
Milad Farazmand
authored andcommittedJan 14, 2020
tools: use CC instead of CXX when pointing to gcc
Current CC flag points to g++ instead of gcc which is causing failures when compiling V8. PR-URL: #30817 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 1fa7347 commit 7558d8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎tools/make-v8.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ if [[ "$ARCH" == "s390x" ]] || [[ "$ARCH" == "ppc64le" ]]; then
1515
if [[ X"$CXX" != X ]]; then
1616
CXX_PATH=`which $CXX |grep g++`
1717
fi
18+
if [[ X"$CC" != X ]]; then
19+
CC_PATH=`which $CC |grep gcc`
20+
fi
1821
rm -f "$BUILD_TOOLS/g++"
1922
rm -f "$BUILD_TOOLS/gcc"
2023
fi
2124
if [[ "$ARCH" == "s390x" ]]; then
2225
ln -s $CXX_PATH "$BUILD_TOOLS/g++"
23-
ln -s $CXX_PATH "$BUILD_TOOLS/gcc"
26+
ln -s $CC_PATH "$BUILD_TOOLS/gcc"
2427
g++ --version
2528
export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config
2629
gn gen -v out.gn/$BUILD_ARCH_TYPE --args='is_component_build=false is_debug=false use_goma=false goma_dir="None" use_custom_libcxx=false v8_target_cpu="s390x" target_cpu="s390x"'

0 commit comments

Comments
 (0)