[cfe-dev] Trouble cross compiling clang/llvm using clang/llvm
Renato Golin
renato.golin at linaro.org
Wed Jan 7 02:23:10 PST 2015
On 9 December 2014 at 04:49, Vince Harron <vharron at google.com> wrote:
> -DCMAKE_CXX_FLAGS='-target arm-linux-gnueabihf -mcpu=cortex-a9
> -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/arm-linux-gnueabihf/
> -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/
> -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -
>
> vharron at tifa:~/ll/cross/build$ clang++ -std=c++0x test.cpp -target
> arm-linux-gnueabihf -mcpu=cortex-a9 -I/usr/arm-linux-gnueabihf/
> include/c++/4.7.3/arm-linux-gnueabihf/ -I/usr/arm-linux-gnueabihf/include/c++/4.7.3/
> -I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name
> arm-linux-gnueabihf-gcc-4.7
>
Hi Vince,
You have a -std=c++0x in your compile argument but not on the CMAKE flags.
Are you sure it's being added by default?
cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150107/9727d205/attachment.html>
More information about the cfe-dev
mailing list