* [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling
@ 2016-04-28 9:48 Roger Pau Monne
2016-04-28 10:09 ` Jan Beulich
0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2016-04-28 9:48 UTC (permalink / raw)
To: xen-devel; +Cc: Roger Pau Monne
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Config.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Config.mk b/Config.mk
index 9b097c9..67b26dd 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, 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)
--
2.6.4 (Apple Git-63)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling
2016-04-28 9:48 [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling Roger Pau Monne
@ 2016-04-28 10:09 ` Jan Beulich
2016-04-28 10:17 ` Roger Pau Monne
2016-04-28 10:20 ` Wei Liu
0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2016-04-28 10:09 UTC (permalink / raw)
To: Roger Pau Monne; +Cc: xen-devel, Wei Liu
>>> On 28.04.16 at 11:48, <roger.pau@citrix.com> wrote:
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> ---
> Config.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Config.mk b/Config.mk
> index 9b097c9..67b26dd 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, 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)
Acked-by: Jan Beulich <jbeulich@suse.com>
(Side note: Please don't forget to Cc Wei on patches targeted at 4.7.
And please don't forget to Cc relevant maintainers.)
> +ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH))
> +HOSTCC ?= $(CC)
> +HOSTCXX ?= $(CXX)
> +endif
> +
> # Use Clang/LLVM instead of GCC?
> clang ?= n
> ifeq ($(clang),n)
> --
> 2.6.4 (Apple Git-63)
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling
2016-04-28 10:09 ` Jan Beulich
@ 2016-04-28 10:17 ` Roger Pau Monne
2016-04-28 10:20 ` Wei Liu
1 sibling, 0 replies; 4+ messages in thread
From: Roger Pau Monne @ 2016-04-28 10:17 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel, Wei Liu
On Thu, Apr 28, 2016 at 04:09:46AM -0600, Jan Beulich wrote:
> >>> On 28.04.16 at 11:48, <roger.pau@citrix.com> wrote:
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > ---
> > Config.mk | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/Config.mk b/Config.mk
> > index 9b097c9..67b26dd 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, 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)
> Acked-by: Jan Beulich <jbeulich@suse.com>
That's fine by me (and more accurate than my original message).
> (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
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling
2016-04-28 10:09 ` Jan Beulich
2016-04-28 10:17 ` Roger Pau Monne
@ 2016-04-28 10:20 ` Wei Liu
1 sibling, 0 replies; 4+ messages in thread
From: Wei Liu @ 2016-04-28 10:20 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel, Wei Liu, Roger Pau Monne
On Thu, Apr 28, 2016 at 04:09:46AM -0600, Jan Beulich wrote:
> >>> On 28.04.16 at 11:48, <roger.pau@citrix.com> wrote:
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > ---
> > Config.mk | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/Config.mk b/Config.mk
> > index 9b097c9..67b26dd 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, 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)
> Acked-by: Jan Beulich <jbeulich@suse.com>
>
> (Side note: Please don't forget to Cc Wei on patches targeted at 4.7.
> And please don't forget to Cc relevant maintainers.)
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
>
> > +ifeq ($(XEN_TARGET_ARCH), $(XEN_COMPILE_ARCH))
> > +HOSTCC ?= $(CC)
> > +HOSTCXX ?= $(CXX)
> > +endif
> > +
> > # Use Clang/LLVM instead of GCC?
> > clang ?= n
> > ifeq ($(clang),n)
> > --
> > 2.6.4 (Apple Git-63)
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-28 10:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 9:48 [PATCH for-4.7] build: use C{C/XX} as HOSTC{C/XX} if we are not cross-compiling Roger Pau Monne
2016-04-28 10:09 ` Jan Beulich
2016-04-28 10:17 ` Roger Pau Monne
2016-04-28 10:20 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).