[LLVMdev] Setting up a cross-compiler for cortex-m3

Renato Golin rengolin at systemcall.org
Wed Jul 18 08:45:44 PDT 2012


On 18 July 2012 15:46, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> $ clang++ -ccc-host-triple thumbv7m-none-gnueabi noInclude.cpp -c
> --sysroot=/home/emitrax/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/

Try -ccc-gcc-name arm-none-linux-gnueabi-g++ -ccc-host-triple
thumbv7m-none-linux-gnueabi

Sometimes it's better than sysroot, as it finds it all by itself.

-- 
cheers,
--renato

http://systemcall.org/



More information about the llvm-dev mailing list