From: Wei Liu <wl@xen.org>
To: Andrii Anisov <andrii.anisov@gmail.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Julien Grall <julien@xen.org>, Wei Liu <wl@xen.org>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Julien Grall <julien.grall@arm.com>,
Jan Beulich <jbeulich@suse.com>,
xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel] [RFC 1/7] xen: clang: Support correctly cross-compile
Date: Wed, 6 Nov 2019 11:07:45 +0000 [thread overview]
Message-ID: <20191106110745.6jdbhrefdnibj5hc@debian> (raw)
In-Reply-To: <1573031953-12894-2-git-send-email-andrii.anisov@gmail.com>
On Wed, Nov 06, 2019 at 11:19:07AM +0200, Andrii Anisov wrote:
> From: Julien Grall <julien.grall@arm.com>
>
> Clang uses "-target" option for cross-compilation.
>
> Signed-off-by: Julien Grall <julien.grall@arm.com>
> ---
> config/StdGNU.mk | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/config/StdGNU.mk b/config/StdGNU.mk
> index 039274e..48c50b5 100644
> --- a/config/StdGNU.mk
> +++ b/config/StdGNU.mk
> @@ -1,8 +1,13 @@
> AS = $(CROSS_COMPILE)as
> LD = $(CROSS_COMPILE)ld
> ifeq ($(clang),y)
> -CC = $(CROSS_COMPILE)clang
> -CXX = $(CROSS_COMPILE)clang++
> +ifneq ($(CROSS_COMPILE),)
> +CC = clang -target $(CROSS_COMPILE:-=)
> +CXX = clang++ -target $(CROSS_COMPILE:-=)
> +else
> +CC = clang
> +CXX = clang++
> +endif
> LD_LTO = $(CROSS_COMPILE)llvm-ld
Do you not need to fix llvm-ld too? I _think_ the relevant option is
-march.
Wei.
> else
> CC = $(CROSS_COMPILE)gcc
> --
> 2.7.4
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-11-06 11:08 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-06 9:19 [Xen-devel] [RFC 0/7] Build XEN with ARM Compiler 6.6.3 Andrii Anisov
2019-11-06 9:19 ` [Xen-devel] [RFC 1/7] xen: clang: Support correctly cross-compile Andrii Anisov
2019-11-06 11:07 ` Wei Liu [this message]
2019-11-06 15:24 ` Jan Beulich
2019-11-18 6:08 ` Julien Grall
2019-11-06 9:19 ` [Xen-devel] [RFC 2/7] WIP: Compilation with ARM DS-6 compiler Andrii Anisov
2019-11-06 15:28 ` Jan Beulich
2019-11-06 22:08 ` Artem Mygaiev
2019-11-07 7:31 ` Jan Beulich
2019-11-13 17:15 ` Artem Mygaiev
2019-11-13 23:19 ` Julien Grall
2019-11-14 14:12 ` Artem Mygaiev
2019-11-18 6:18 ` Julien Grall
2019-11-19 15:16 ` Artem Mygaiev
2019-11-19 16:13 ` Julien Grall
2019-11-06 9:19 ` [Xen-devel] [RFC 3/7] arm64:armds: ARM Compiler 6.6 does not accept `rx` registers naming for AArch64 Andrii Anisov
2019-11-06 15:32 ` Jan Beulich
2019-11-11 20:49 ` Stefano Stabellini
2019-11-13 5:56 ` Julien Grall
2019-11-06 9:19 ` [Xen-devel] [RFC 4/7] arm/gic: Drop pointless assertions Andrii Anisov
2019-11-11 20:52 ` Stefano Stabellini
2019-11-13 1:14 ` Julien Grall
2019-11-20 22:15 ` Stefano Stabellini
2019-11-06 9:19 ` [Xen-devel] [RFC 5/7] WIP:arm64:armds: Build XEN with ARM Compiler 6.6 Andrii Anisov
2019-11-11 21:26 ` Stefano Stabellini
2019-11-13 5:50 ` Julien Grall
2019-11-14 11:31 ` Andrii Anisov
2019-11-18 7:03 ` Julien Grall
2019-11-14 11:14 ` Andrii Anisov
2019-11-20 22:56 ` Stefano Stabellini
2019-11-06 9:19 ` [Xen-devel] [RFC 6/7] arm: Introduce dummy empty functions for data only C files Andrii Anisov
2019-11-11 20:57 ` Stefano Stabellini
2019-11-13 16:41 ` Andrii Anisov
2019-11-13 23:03 ` Julien Grall
2019-11-14 13:32 ` Artem Mygaiev
2019-11-20 22:20 ` Stefano Stabellini
2019-11-13 5:51 ` Julien Grall
2019-11-13 17:07 ` Andrii Anisov
2019-11-06 9:19 ` [Xen-devel] [RFC 7/7] arm/gic-v3: add GIC version suffix to iomem range variables Andrii Anisov
2019-11-11 20:59 ` Stefano Stabellini
2019-11-13 1:25 ` Julien Grall
2019-11-14 8:35 ` Andrii Anisov
2019-11-20 22:23 ` Stefano Stabellini
2019-11-21 9:05 ` Andrii Anisov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191106110745.6jdbhrefdnibj5hc@debian \
--to=wl@xen.org \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=andrii.anisov@gmail.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@arm.com \
--cc=julien@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.