linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3 0/5] Support cross compiling with clang
@ 2024-09-11  9:14 Andrew Jones
  2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 1/5] riscv: Drop mstrict-align Andrew Jones
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Andrew Jones @ 2024-09-11  9:14 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.

v3:
 - Add README patch for cross-compiling, clang, and cross-clang [Nick]
 - Add comment to the commenting-out of mstrict-align [Nick]
 - Add the reason to ignore warnings vs. fix code to commit message of
   patch2
 - Picked up Nick's tags
v2:
 - fix building with clang and --config-efi by suppressing a warning
 - added riscv clang efi build to CI
 - picked up Thomas's tags

Andrew Jones (5):
  riscv: Drop mstrict-align
  Makefile: Prepare for clang EFI builds
  configure: Support cross compiling with clang
  riscv: gitlab-ci: Add clang build tests
  README: Add cross and clang recipes

 .gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++++
 Makefile       |  2 ++
 README.md      | 22 ++++++++++++++++++++++
 configure      | 11 ++++++++---
 riscv/Makefile |  4 +++-
 5 files changed, 78 insertions(+), 4 deletions(-)

-- 
2.46.0



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

end of thread, other threads:[~2024-10-24  8:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11  9:14 [kvm-unit-tests PATCH v3 0/5] Support cross compiling with clang Andrew Jones
2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 1/5] riscv: Drop mstrict-align Andrew Jones
2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 2/5] Makefile: Prepare for clang EFI builds Andrew Jones
2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 3/5] configure: Support cross compiling with clang Andrew Jones
2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 4/5] riscv: gitlab-ci: Add clang build tests Andrew Jones
2024-09-11  9:14 ` [kvm-unit-tests PATCH v3 5/5] README: Add cross and clang recipes Andrew Jones
2024-10-24  8:38 ` [kvm-unit-tests PATCH v3 0/5] 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;
as well as URLs for NNTP newsgroup(s).