how to switch compiler versions

Sascha Wildner saw at online.de
Thu Nov 5 02:53:22 PST 2009


Saifi Khan schrieb:
On Thu, 5 Nov 2009, Alex Hornung wrote:

I agree with Sascha, there is no point in an external tool. It's easy enough
to either set CCVER in make.conf
or just build with CCVER=... make ...
Alex, thank you for your reply.

One quick newbie query,

once i install clang/llvm on a box running 2.5.1-DEVELOPMENT,
can i just specify CCVER=clang make ... ?
You can.

Here's a small patch that makes world build with clang (kernel should 
build out of the box):

http://leaf.dragonflybsd.org/~swildner/world_clang.diff

To build world, do:

env WORLD_CCVER=clang make -DNO_GCC44 -DNO_WERROR buildworld

For the kernel, likewise:

env WORLD_CCVER=clang make buildkernel KERNCONF=...

Regards,
Sascha
--
http://yoyodyne.ath.cx




More information about the Users mailing list