This is a cache of https://discuss.96boards.org/t/use-llvm-to-cross-compile-program-for-hikey/2193. It is a snapshot of the page at 2024-09-19T06:04:23.398+0000.
Use <strong>llvm</strong> to cross compile program for Hikey - HiKey - 96Boards Forum

Use llvm to cross compile program for Hikey

Hi,
I want to cross compile my application using llvm compiler for Linux running on a Hikey board. What are the correct flags that should be used when compiling the program?

For example (c - Clang Cross Compiling for ARM? - Stack Overflow):
To cross-compile for Raspberry Pi running soft-float Linux distros add flags -ccc-host-triple arm-eabi -marm -mfpu=vfp -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=softfp

Thanks.