Skip to contentSkip to conversation

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

PATCH In review Roger Pau Monne 3 participants 4 messages Apr 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling

---
 Config.mk | 6 ++++++
 1 file changed, 6 insertions(+)
Config.mk +6 -0
index 9b097c9..67b26dd 100644
@@ -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, use C{C/XX} as HOSTC{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)
Signature · 7 lines
2.6.4 (Apple Git-63)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.04.16 at 11:48, <[email protected]> wrote:
---
 Config.mk | 6 ++++++
 1 file changed, 6 insertions(+)
Config.mk +0 -0
index 9b097c9..67b26dd 100644

Config.mk DESTDIR ?= / · line 48

Quoted 4 lines
Config.mk +1 -0
@@ -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, use C{C/XX} as HOSTC{C/XX}

I think I'd prefer something like "..., default HOSTC{C/XX} to C{C/XX}" but apart from that (which could be adjusted while committing, if you agree)

(Side note: Please don't forget to Cc Wei on patches targeted at 4.7. And please don't forget to Cc relevant maintainers.)

Quoted 16 lines
Config.mk +5 -0
+ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH))
+HOSTCC ?= $(CC)
+HOSTCXX ?= $(CXX)
+endif
+
 # Use Clang/LLVM instead of GCC?
 clang ?= n
 ifeq ($(clang),n)
Signature · 7 lines
2.6.4 (Apple Git-63)


_______________________________________________
Xen-devel mailing list
[email protected] 
http://lists.xen.org/xen-devel 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 14 lines · Jan Beulich
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 28.04.16 at 11:48, <[email protected]> wrote:
---
 Config.mk | 6 ++++++
 1 file changed, 6 insertions(+)
Config.mk +0 -0
index 9b097c9..67b26dd 100644
@@ -45,6 +45,12 @@ DESTDIR     ?= /
 # Allow phony attribute to be listed as dependency rather than fake target
 .PHONY: .phony
 
Quoted 6 lines

Config.mk DESTDIR ?= / · line 48

Quoted 1 line
Config.mk +1 -0
+# If we are not cross-compiling, use C{C/XX} as HOSTC{C/XX}

I think I'd prefer something like "..., default HOSTC{C/XX} to C{C/XX}" but apart from that (which could be adjusted while committing, if you agree)

That's fine by me (and more accurate than my original message).

Quoted 2 lines

(Side note: Please don't forget to Cc Wei on patches targeted at 4.7. And please don't forget to Cc relevant maintainers.)

Yes, my bad. I've actually forgotten to Cc anyone on this patch, sigh...

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
In reply to Jan Beulich
Quoted 19 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 28.04.16 at 11:48, <[email protected]> wrote:
---
 Config.mk | 6 ++++++
 1 file changed, 6 insertions(+)
Config.mk +0 -0
index 9b097c9..67b26dd 100644

Config.mk DESTDIR ?= / · line 48

Quoted 4 lines
Config.mk +1 -0
@@ -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, use C{C/XX} as HOSTC{C/XX}

I think I'd prefer something like "..., default HOSTC{C/XX} to C{C/XX}" but apart from that (which could be adjusted while committing, if you agree)

Quoted 4 lines

(Side note: Please don't forget to Cc Wei on patches targeted at 4.7. And please don't forget to Cc relevant maintainers.)

Quoted 13 lines
Quoted 13 lines
Config.mk +5 -0
+ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH))
+HOSTCC ?= $(CC)
+HOSTCXX ?= $(CXX)
+endif
+
 # Use Clang/LLVM instead of GCC?
 clang ?= n
 ifeq ($(clang),n)
Signature · 1 line
2.6.4 (Apple Git-63)
Quoted 6 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel