[cfe-dev] Single instance 'clang', multi-target support for headers and libraries

Paweł Sikora via cfe-dev cfe-dev at lists.llvm.org
Thu Jun 7 09:50:05 PDT 2018


----- Oryginalna wiadomość -----

> I don't think this helps, perhaps my explanation is not really clear enough.
> (...)

generally you can crosscompile for any target (enabled in llvm) with -target/--sysroot switches:
https://clang.llvm.org/docs/CrossCompilation.html#target-triple

afaics there's a minor bug in clang driver, it searches target compiler-rt files inside clang installation tree instead of --sysroot:
https://bugs.llvm.org/show_bug.cgi?id=36053

i'm using a clang/llvm toolchain with lld linker and libcxxabi/libcxx/compiler-rt runtime for 32/64-bit linux crosscompilation and it works pretty fine.



More information about the cfe-dev mailing list