aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-03-20 17:22:02 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-03-20 17:23:06 +0000
commit1c70bb0a1752b8b88dc38e442a38625aac6de55f (patch)
tree8aecc620626d17be27fed0ebc5516a05a505981f
parentf14fc50d9bb7870cfe7966384e7d4e368ea57648 (diff)
Fix test for bug-2123.
GCC plugins should be compiled by the host compiler. common.mk: Define HOSTCC and HOSTCXX. Change-Id: I1e5ecb3731a09f4310f7bec9d0c2089303ce3b1a
-rwxr-xr-xbug-2123/build.sh2
-rw-r--r--common.mk3
2 files changed, 4 insertions, 1 deletions
diff --git a/bug-2123/build.sh b/bug-2123/build.sh
index 9f6f3ff..59be934 100755
--- a/bug-2123/build.sh
+++ b/bug-2123/build.sh
@@ -19,6 +19,6 @@ plugin_dir=$(${CC} -print-file-name=plugin)
echo "$(basename $(pwd)): FAIL" > result.txt
set -x
-${CC} -c -o /dev/null simple.cc -I${plugin_dir}/include -I${TOOLCHAIN}/include -I.
+${HOSTCC} -c -o /dev/null simple.cc -I${plugin_dir}/include -I${TOOLCHAIN}/include -I.
set +x
echo "$(basename $(pwd)): PASS" > result.txt
diff --git a/common.mk b/common.mk
index dce9103..a210ed9 100644
--- a/common.mk
+++ b/common.mk
@@ -14,6 +14,9 @@ endif
export CC=$(WINE) $(TOOLCHAIN)/bin/$(TARGET)-gcc $(EXTRA_CFLAGS)
export CXX=$(WINE) $(TOOLCHAIN)/bin/$(TARGET)-g++ $(EXTRA_CFLAGS)
+export HOSTCC=gcc
+export HOSTCXX=g++
+
check::
-$(MAKE) all
@cat result.txt