diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-11-01 10:05:29 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-11-01 10:05:32 +0100 |
commit | ab85bcffdc6815b1634e983b7d35a7db8d098d16 (patch) | |
tree | 7095a0c6e0018f45d083ca55ff7580cef9075235 | |
parent | 2518708582b50ed79c60c68ad1eae46a92a3fb10 (diff) | |
download | ptxdist-ab85bcffdc6815b1634e983b7d35a7db8d098d16.tar.gz ptxdist-ab85bcffdc6815b1634e983b7d35a7db8d098d16.tar.xz |
host-qemu: disable icecc for gcc > 4.9
The avx2 code used preprocessor magic that break with icecc and gcc < 4.9
with:
[...]
util/cutils.c:282:29: error: '__m256i' undeclared (first use in this function)
[...]
Avoid this by disabling icecc for host-qemu if the host-gcc is older than
4.9.x.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/host-qemu.make | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/host-qemu.make b/rules/host-qemu.make index adb672723..0b4986ae5 100644 --- a/rules/host-qemu.make +++ b/rules/host-qemu.make @@ -34,6 +34,13 @@ HOST_QEMU_DIR := $(HOST_BUILDDIR)/$(HOST_QEMU) # autoconf # +HOST_QEMU_BROKEN_ICECC := \ + $(shell gcc -dumpversion | awk -F . '{ if ($$1*100 + $$2 < 409) print "y" }') + +ifeq ($(HOST_QEMU_BROKEN_ICECC),y) +HOST_QEMU_MAKE_ENV := PTXDIST_ICECC= +endif + HOST_QEMU_TARGETS := $(PTXCONF_ARCH_STRING) ifndef PTXCONF_ARCH_X86_64 ifdef PTXCONF_ARCH_X86 |