aboutsummaryrefslogtreecommitdiffstats
path: root/Config.mk
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
committerKeir Fraser <keir@xensource.com>2007-03-17 12:04:48 +0000
commitcfcf0ae28495b1fff0f16981822b1a93b9336c7a (patch)
tree0b5c11150b92066f53d41dc90dc9fb588724ad3a /Config.mk
parent36200329b198717624bfa37f410e3a650168a9c7 (diff)
downloadxen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.gz
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.tar.bz2
xen-cfcf0ae28495b1fff0f16981822b1a93b9336c7a.zip
Xen and tools now require gcc 3.4+ on x86.
- gcc-3.2 cannot handle some multi-line assertions in the Xen sources. Noone noticed. - gcc-3.3 has problems with alignment constraints inside typedefs. gcc 3.4.0 is now three years old so I hope that everyone has an up-to-date compiler, or can obtain a more up-to-date package for their distribution. If not we may need to fall back to supporting gcc-3.3.x as well. Also clean up the way we do version checks, using the power of awk. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'Config.mk')
-rw-r--r--Config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Config.mk b/Config.mk
index 6f9f970fe6..0181cc3ad1 100644
--- a/Config.mk
+++ b/Config.mk
@@ -36,6 +36,12 @@ endif
cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
/dev/null 2>&1`"; then echo "$(2)"; else echo "$(3)"; fi ;)
+# cc-ver
+# Usage: ifeq ($(call cc-ver,$(CC),0x030400),y)
+cc-ver = $(shell if [ $$((`$(1) -dumpversion | awk -F. \
+ '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -ge $$(($(2))) ]; \
+ then echo y; else echo n; fi ;)
+
ifneq ($(debug),y)
CFLAGS += -DNDEBUG
else