Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-08 Thread David Chisnall
On 8 Sep 2013, at 21:18, Dag-Erling Smørgrav wrote: > David Chisnall writes: >> Log: >> On platforms where clang is the default compiler, don't build gcc or >> libstdc++. > > This uncovers what I think is a bug in bsd.prog.mk: > > des@ds4 /usr/src/usr.bin% make > ===> alias (all) > ===> app

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-08 Thread Dag-Erling Smørgrav
David Chisnall writes: > Log: > On platforms where clang is the default compiler, don't build gcc or > libstdc++. This uncovers what I think is a bug in bsd.prog.mk: des@ds4 /usr/src/usr.bin% make ===> alias (all) ===> apply (all) ===> ar (all) ===> asa (all) ===> at (all) ===> atf (all) ===>

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread David Chisnall
On 6 Sep 2013, at 21:26, David Chisnall wrote: > On 6 Sep 2013, at 21:25, Nathan Whitehorn wrote: > >> Thanks! I ran into one other issue with the patch: c++filt continues to >> be built, but will be removed by make delete-old, which I guess is not >> intentional. > > Hmm, no that's not intent

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread Nathan Whitehorn
On 09/06/13 15:08, David Chisnall wrote: > Author: theraven > Date: Fri Sep 6 20:08:03 2013 > New Revision: 255321 > URL: http://svnweb.freebsd.org/changeset/base/255321 > > Log: > On platforms where clang is the default compiler, don't build gcc or > libstdc++. > To enable them, set WITH_GCC

svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread David Chisnall
Author: theraven Date: Fri Sep 6 20:08:03 2013 New Revision: 255321 URL: http://svnweb.freebsd.org/changeset/base/255321 Log: On platforms where clang is the default compiler, don't build gcc or libstdc++. To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to usin

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread Xin Li
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 09/06/13 13:43, David Chisnall wrote: > Thanks for the report. I've now bracketed the extra flag in a > check that we're compiling with clang, which should fix it, so let > me know if it still breaks for you. That's fast! Thanks, this is fixed

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread David Chisnall
Thanks for the report. I've now bracketed the extra flag in a check that we're compiling with clang, which should fix it, so let me know if it still breaks for you. David On 6 Sep 2013, at 21:34, Xin LI wrote: > Will this break cross building on 9.x host? I hit this: > > c++ -O2 -pipe >

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread David Chisnall
On 6 Sep 2013, at 21:11, Nathan Whitehorn wrote: > Don't you mean MACHINE here? Otherwise native builds on pc98 will fail > due to: > >> +# The pc98 bootloader requires gcc to build and so we must leave gcc enabled >> +# for pc98 for now. >> +.if ${__TT} == "pc98" >> +__DEFAULT_NO_OPTIONS+=GNUCX

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread Niclas Zeising
On 09/06/13 22:08, David Chisnall wrote: > Author: theraven > Date: Fri Sep 6 20:08:03 2013 > New Revision: 255321 > URL: http://svnweb.freebsd.org/changeset/base/255321 > > Log: > On platforms where clang is the default compiler, don't build gcc or > libstdc++. > To enable them, set WITH_GC

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread Xin LI
Will this break cross building on 9.x host? I hit this: c++ -O2 -pipe -I/tank/home/delphij/head/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/tank/home/delphij/head/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/tank/home/delphij/head/lib/clang/libllvmsupport/

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread David Chisnall
On 6 Sep 2013, at 21:25, Nathan Whitehorn wrote: > Thanks! I ran into one other issue with the patch: c++filt continues to > be built, but will be removed by make delete-old, which I guess is not > intentional. Hmm, no that's not intentional. Why is make delete-old deleting it? David

Re: svn commit: r255321 - in head: contrib/llvm/tools/clang/lib/Driver gnu/lib gnu/usr.bin/cc share/mk sys/sys tools/build/options

2013-09-06 Thread Nathan Whitehorn
On 09/06/13 15:23, David Chisnall wrote: > On 6 Sep 2013, at 21:11, Nathan Whitehorn wrote: > >> Don't you mean MACHINE here? Otherwise native builds on pc98 will fail >> due to: >> >>> +# The pc98 bootloader requires gcc to build and so we must leave gcc >>> enabled >>> +# for pc98 for now. >>>