Re: start building clang alongside gcc on amd64

2017-04-17 Thread Steven McDonald
On Mon, 17 Apr 2017 09:20:21 +0200 (CEST) Mark Kettenis wrote: > These instructions may not be 100% accurate yet ;). I also had to build libcxx before doing a full build: # cd /usr/src/lib/libcxx # make obj # make depend # make includes # make # make install

Re: start building clang alongside gcc on amd64

2017-04-17 Thread Jonathan Gray
On Mon, Apr 17, 2017 at 10:04:47AM +0200, Mark Kettenis wrote: > > Date: Mon, 17 Apr 2017 09:26:53 +0200 > > From: Landry Breuil > > Content-Disposition: inline > > List-Owner: > > X-Loop: tech@openbsd.org > > Sender: owner-t...@openbsd.org > >

Re: start building clang alongside gcc on amd64

2017-04-17 Thread Mark Kettenis
> Date: Mon, 17 Apr 2017 09:26:53 +0200 > From: Landry Breuil > Content-Disposition: inline > List-Owner: > X-Loop: tech@openbsd.org > Sender: owner-t...@openbsd.org > X-CNFS-Analysis: v=2.2 cv=eoad9chX c=1 sm=0 tr=0 >

Re: start building clang alongside gcc on amd64

2017-04-17 Thread Landry Breuil
On Mon, Apr 17, 2017 at 09:20:21AM +0200, Mark Kettenis wrote: > After further discussion it Theo, here is a new version of the diff. > It explicitly lists the gcc4 architectures now, introduces BUILD_GCC3 > and BUILD_GCC4 variables and fixes installation of the c++ headers. > > Index:

Re: start building clang alongside gcc on amd64

2017-04-17 Thread Mark Kettenis
After further discussion it Theo, here is a new version of the diff. It explicitly lists the gcc4 architectures now, introduces BUILD_GCC3 and BUILD_GCC4 variables and fixes installation of the c++ headers. After applying this diff you need to: 1. Run make install in /usr/src/share/mk 2.

Re: start building clang alongside gcc on amd64

2017-04-16 Thread Mark Kettenis
> Date: Mon, 17 Apr 2017 01:49:18 +1000 > From: Jonathan Gray > > On Sun, Apr 16, 2017 at 11:15:55AM +0200, Mark Kettenis wrote: > > Here is my current diff to build clang alongside gcc. The idea is > > that if you add an architecture to both CLANG_ARCH and GCC4_ARCH, both > >

Re: start building clang alongside gcc on amd64

2017-04-16 Thread Jonathan Gray
On Sun, Apr 16, 2017 at 11:15:55AM +0200, Mark Kettenis wrote: > Here is my current diff to build clang alongside gcc. The idea is > that if you add an architecture to both CLANG_ARCH and GCC4_ARCH, both > compilers get built, but gcc remains the default compiler. It forces > the clang-related

start building clang alongside gcc on amd64

2017-04-16 Thread Mark Kettenis
Here is my current diff to build clang alongside gcc. The idea is that if you add an architecture to both CLANG_ARCH and GCC4_ARCH, both compilers get built, but gcc remains the default compiler. It forces the clang-related libraries (libcompiler_rt, libc++abi, libc++) to be built with clang.