It returns different string depending on compiler version. No user yet.
Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Andrew Cooper <andrew.coop...@citrix.com> Cc: George Dunlap <george.dun...@eu.citrix.com> Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Jan Beulich <jbeul...@suse.com> Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Cc: Stefano Stabellini <sstabell...@kernel.org> Cc: Tim Deegan <t...@xen.org> Cc: Wei Liu <wei.l...@citrix.com> --- Config.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Config.mk b/Config.mk index a97036e..d5834cd 100644 --- a/Config.mk +++ b/Config.mk @@ -128,6 +128,11 @@ define cc-ver-check-closure endif endef +# cc-ifversion: Check compiler version and take branch accordingly +# Usage $(call cc-ifversion, -lt, 0x040700, string_if_y, string_if_n) +cc-ifversion = $(shell [ $(call cc-ver,$(CC),$(1),$(2)) = "y" ] \ + && echo $(3) || echo $(4)) + # Require GCC v4.1+ check-$(gcc) = $(call cc-ver-check,CC,0x040100,"Xen requires at least gcc-4.1") $(eval $(check-y)) -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel