Re: [kvm-unit-tests PATCH 0/3] Support cross compiling with clang

2024-09-04 Thread Andrew Jones
On Tue, Sep 03, 2024 at 06:30:47PM GMT, Andrew Jones wrote: > 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

[kvm-unit-tests PATCH 0/3] Support cross compiling with clang

2024-09-03 Thread Andrew Jones
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 c