Hi,
On 06/11/2019 09:19, Andrii Anisov wrote:
From: Julien Grall <[email protected]>
Clang uses "-target" option for cross-compilation.
While I appreaciate you want to carry this work, there were a lenghty
discussion when I sent the patch (see [1]). This should have been
addressed before resending it (even part of an RFC).
But, AFAICT, you don't use clang=y for this series. So why did you
include it in this series?
Cheers,
[1] <[email protected]>
Signed-off-by: Julien Grall <[email protected]>
---
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
else
CC = $(CROSS_COMPILE)gcc
--
Julien Grall
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel