Re: CLANG; still cc in use when building the WORLD with CLANG?

看板FB_current作者時間14年前 (2011/08/31 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/16 (看更多)
On 08/30/11 18:20, Dimitry Andric wrote: > On 2011-08-30 11:48, Hartmann, O. wrote: >> I'm building world with CLANG (or I pretend to do so). >> In my /etc/make.conf I use these lines: >> ### >> ### CLANG >> ### >> .if defined(USE_CLANG) >> .if !empty(.CURDIR:M/usr/src*) > > You should add "|| !empty(.CURDIR:M:/usr/obj*)" to this .if statement, > because the build build process changes to directories inside /usr/obj > for various steps. Alternatively, use the simpler: > > .if empty(.CURDIR:N/usr/src*:N/usr/obj*) > > Alternatively, just remove the statement, and use clang for everything, > and help fix bugs in ports. :) > :-) I would, if I did not desperately have to rely on a working box for now. I forgot the above addition. Will try it - or better, leave it alone and try helping buxfixing ... > >> CFLAGS= -O3 -march=native -mtune=native -fno-strict-aliasing -pipe >> COPTFLAGS= -O3 -march=native -mtune=native -pipe > > Take care when using clang and -march=native, there are still some > issues with it (search this mailing list for specifics). If anything > goes wrong, first revert to the default CFLAGS and COPTFLAGS (e.g. > comment them out), and try again. Yes, I know, but I never had problems on my older Core2 based chips. The newer laptop CPU, a Core-i5 "Lynnfield" does have issues. _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1ENILZeJ (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 10 之 16 篇):
文章代碼(AID): #1ENILZeJ (FB_current)