[llvm-dev] Cross compiling C++ program

Goran Mekić via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 2 16:57:36 PDT 2017


On Wed, Aug 02, 2017 at 05:48:20PM -0600, Jonathan Roelofs wrote:
> I strongly recommend against using the host's headers when cross compiling.
> You need to either find or build an arm-none-eabi sysroot, and use the
> --sysroot= flag.
>
>
> Jon

OK, that's a start. I found https://www.llvm.org/docs/HowToCrossCompileLLVM.html. Is it enough for --sysroot? In case it is, what should be the value of -DLLVM_DEFAULT_TARGET_TRIPLE if I want to use FreeBSD as host and Cortex-M4 as sysroot? Thanx!

Regards,
meka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170803/28cb64bc/attachment.sig>


More information about the llvm-dev mailing list