[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling



commit 1d5b507e69d67d2a6eee54286e44b5b7cc525e6c
Author:     Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Thu Apr 28 15:11:19 2016 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Apr 28 15:11:19 2016 +0200

    build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling
    
    Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 Config.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Config.mk b/Config.mk
index 9b097c9..7b2fe7f 100644
--- a/Config.mk
+++ b/Config.mk
@@ -45,6 +45,12 @@ DESTDIR     ?= /
 # Allow phony attribute to be listed as dependency rather than fake target
 .PHONY: .phony
 
+# If we are not cross-compiling, default HOSTC{C/XX} to C{C/XX}
+ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH))
+HOSTCC ?= $(CC)
+HOSTCXX ?= $(CXX)
+endif
+
 # Use Clang/LLVM instead of GCC?
 clang ?= n
 ifeq ($(clang),n)
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.