</style>
<h1 align="center">Compiling DragonFly BSD using llvm/clang </h1>
+<!--
<h2> THIS NEEDS AN UPDATE !!!! </h2>
+-->
<h2>Overview</h2>
-This page tracks the progress on an effort to compile the DragonFly
-BSD system with llvm/clang instead of gcc.
+This page tracks the progress on an effort to compile DragonFly with llvm/clang instead of gcc.
<h2>How?</h2>
<pre class="programlisting">
-cd sys/config
-config GENERIC
-cd ../compile/GENERIC
-make depend
-env CC=clang COPTFLAGS=-O make MODULES_OVERRIDE=
-make install MODULES_OVERRIDE=
+cd /usr/src
+env WORLD_CCVER=clang make -DNO_GCC44 buildworld
+env WORLD_CCVER=clang make buildkernel KERNCONF=...
</pre>
-
+<!--
<h2>HostInfo patch</h2>
<strike>This <a href="http://leaf.dragonflybsd.org/~alexh/clang/clang_ccclib.patch">patch</a> enables a DragonFly BSD target for ccc with its own toolchain configuration.</strike>
-
+-->
<h2>Notes</h2>
llvm/clang bug <a href="http://llvm.org/bugs/show_bug.cgi?id=3812">#3812</a> was reopened as it seems to be an actual bug. The patch (atomic.patch) is only intended to be TEMPORARY and will kill gcc compatibility! I will update this as soon as a llvm/clang is fixed.