[cfe-dev] make target for clang

Jiangning Liu liujiangning1 at gmail.com
Wed Jul 11 07:18:14 PDT 2012


Thiago,

I think clang is naturally retarget-able to a lot of targets simultaneously. If you don't add build target, you would be able to get a bunch of targets build, which means you can use clang command line option "-target xxx" to generate code for different targets, but with the same clang binary!

You can also specify a particular target to build on command line. If you use cmake to build, for example, you can use '-DLLVM_TARGETS_TO_BUILD="ARM"' to build arm target. If you just use make, you can use target triple like "arm-pc-linux-gnueabi".

Thanks,
-Jiangning

在 2012-7-11,下午9:44,Thiago Farina <tfarina at chromium.org> 写道:

> Hi,
> 
> What is the target to pass to make, to build just clang and clang++?
> 
> Thanks,
> 
> -- 
> Thiago
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list