]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
Config.mk: correct gcc5 check
authorJan Beulich <jbeulich@suse.com>
Tue, 8 Apr 2025 07:38:36 +0000 (09:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Apr 2025 07:38:36 +0000 (09:38 +0200)
Passing the -dumpversion option to gcc may only print the major version
(my system 4.x.y printed major and minor, which in nowaday's scheme is
then indeed just 5 for 5.x, which in turn is what my secondary system
compiler does).

Fixes: 40458f752550 ("Xen: Update compiler baseline checks")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Config.mk

index 8a60d4a55abfe524f8912a45c79c3c6d9f8a740e..8be7733d9ee8941f7fc308ea029f549a19b9bbbc 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -125,8 +125,8 @@ define cc-ver-check-closure
     endif
 endef
 
-# Require GCC v5.1 as the project global baseline
-check-$(gcc) = $(call cc-ver-check,CC,0x050100,"Xen requires at least GCC 5.1")
+# Require GCC v5 as the project global baseline
+check-$(gcc) = $(call cc-ver-check,CC,0x050000,"Xen requires at least GCC 5")
 $(eval $(check-y))
 
 ld-ver-build-id = $(shell $(1) --build-id 2>&1 | \