Message ID | 1461682343-20597-2-git-send-email-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 26/04/16 15:52, Roger Pau Monne wrote: > Previously HOSTCC was always hardcoded to gcc > > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
On 4/26/16 9:52 AM, Roger Pau Monne wrote: > Previously HOSTCC was always hardcoded to gcc > > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
diff --git a/Config.mk b/Config.mk index a0e6d4e..fd8371a 100644 --- a/Config.mk +++ b/Config.mk @@ -36,7 +36,6 @@ CONFIG_$(XEN_OS) := y SHELL ?= /bin/sh # Tools to run on system hosting the build -HOSTCC = gcc HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer HOSTCFLAGS += -fno-strict-aliasing @@ -50,8 +49,10 @@ DESTDIR ?= / clang ?= n ifeq ($(clang),n) gcc := y +HOSTCC ?= gcc else gcc := n +HOSTCC ?= clang endif
Previously HOSTCC was always hardcoded to gcc Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> --- Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Jan Beulich <jbeulich@suse.com> Cc: Keir Fraser <keir@xen.org> Cc: Tim Deegan <tim@xen.org> --- Changes since v1: - Use ?= instead of = --- Config.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)