Skip to contentSkip to conversation

devtools/test-meson-build: fix CC override for cross builds

PATCH Applied Bruce Richardson 2 participants 2 messages Jun 8, 2018 – Jun 14, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools/test-meson-build: fix CC override for cross builds

For cross-builds the CC environmental variable only applies for compiling native binaries i.e. pmdinfogen, so setting it to a cross-build compiler will only cause problems. Leave the value unset in the script to use the platform-default compiler.

Fixes a55277a788df ("devtools: add test script for meson builds")
---
 devtools/test-meson-builds.sh | 1 -
 1 file changed, 1 deletion(-)
devtools/test-meson-builds.sh +0 -1
index 9868c325b..f2ad05f32 100755
@@ -41,6 +41,5 @@ for f in config/arm/arm*gcc ; do
 	if ! command -v $c >/dev/null 2>&1 ; then
 		continue
 	fi
-	export CC="ccache $c"
 	build build-$(basename $f | tr '_' '-' | cut -d'-' -f-2) --cross-file $f
 done
Signature · 1 line
2.17.1
Acked-by on v1 1/1 Applied
#1 lore raw

08/06/2018 12:35, Bruce Richardson:

Quoted 9 lines

For cross-builds the CC environmental variable only applies for compiling native binaries i.e. pmdinfogen, so setting it to a cross-build compiler will only cause problems. Leave the value unset in the script to use the platform-default compiler.

Fixes a55277a788df ("devtools: add test script for meson builds")

Applied, thanks