public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/3] Support cross compiling with clang
@ 2024-09-03 16:30 Andrew Jones
  2024-09-03 16:30 ` [kvm-unit-tests PATCH 1/3] riscv: Drop mstrict-align Andrew Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Andrew Jones @ 2024-09-03 16:30 UTC (permalink / raw)
  To: kvm, kvm-riscv, kvmarm, linuxppc-dev, linux-s390
  Cc: pbonzini, thuth, lvivier, frankja, imbrenda, nrb, atishp,
	cade.richard, jamestiotio

Modify configure to allow --cc=clang and a cross-prefix to be specified
together (as well as --cflags). This allows compiling with clang, but
using cross binutils for everything else, including the linker. So far
tested on riscv 32- and 64-bit and aarch64 (with some hacks to the code
to get it to compile - which is why there's no gitlab-ci patch for aarch64
in this series). I suspect it should work for other architectures too.

Andrew Jones (3):
  riscv: Drop mstrict-align
  configure: Support cross compiling with clang
  riscv: gitlab-ci: Add clang build tests

 .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++
 configure      | 11 ++++++++---
 riscv/Makefile |  2 +-
 3 files changed, 37 insertions(+), 4 deletions(-)

-- 
2.46.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-09-04 10:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03 16:30 [kvm-unit-tests PATCH 0/3] Support cross compiling with clang Andrew Jones
2024-09-03 16:30 ` [kvm-unit-tests PATCH 1/3] riscv: Drop mstrict-align Andrew Jones
2024-09-04  6:12   ` Thomas Huth
2024-09-03 16:30 ` [kvm-unit-tests PATCH 2/3] configure: Support cross compiling with clang Andrew Jones
2024-09-04  6:10   ` Thomas Huth
2024-09-03 16:30 ` [kvm-unit-tests PATCH 3/3] riscv: gitlab-ci: Add clang build tests Andrew Jones
2024-09-04  6:12   ` Thomas Huth
2024-09-04 10:31 ` [kvm-unit-tests PATCH 0/3] Support cross compiling with clang Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox