Clang as default compiler

Schaich Alonso alonsoschaich at fastmail.fm
Wed Sep 12 04:31:32 UTC 2012


On 2012-09-11 (Tuesday) 23:49:24 Andreas Nilsson wrote:
> Today I decided to take the plunge and make clang the default compiler, ie
> I set
> 
> WITH_CLANG=yes
> WITH_CLANG_IS_CC=yes
> WITH_CLANG_EXTRAS=yes
> 
> in src.conf. No problem so far. However I wanted to avoid building base gcc
> ( the whole collection ). Is  WITHOUT_GCC what I'm looking for?
> 

It probably is. However, WITHOUT_GCC is not supported yet.

> On another clang note: Is there a page specifying valid settings for
> -march, my google-foo is failing me. Ie, I'm looking for the equivalent of
> http://gcc.gnu.org/onlinedocs/gcc-4.7.1/gcc/i386-and-x86_002d64-Options.htm
> l#i386-and-x86_002d64-Options
> 

Take a look at lines 120 and below of contrib/llvm/lib/Target/X86/X86.td in 
the FreeBSD source directory for supported march switches.


More information about the freebsd-stable mailing list