--- wikisrc/tutorials/clang.mdwn 2018/11/07 06:49:49 1.7 +++ wikisrc/tutorials/clang.mdwn 2018/11/07 06:56:34 1.8 @@ -1,8 +1,6 @@ -This page explains how to use clang with the NetBSD base system. -See also [how to use clang to build packages](../pkgsrc/clang/). - -Since NetBSD 6, the base system has included clang, but it is not -built or used by default. To use it, set in mk.conf +Since NetBSD 6, the base system has included clang. +It works on ARM, PowerPC, x86, and possibly SPARC64, but is not built by default. +To use it, set in mk.conf. MKGCC=no MKLLVM=yes @@ -11,10 +9,10 @@ built or used by default. To use it, set And run "build.sh release". This will apply for both pkgsrc and base. -This will work on ARM, PowerPC, x86, and possibly SPARC64. -# Explanation +tunable | explanation +-----------------------|---------------------------------------------------- MKGCC=no | needed as building GCC alongside is not maintained. MKLLVM=yes | builds LLVM libraries. HAVE_LLVM=yes | controls clang being built @@ -22,7 +20,4 @@ CLANGBASE=/usr | instructs pkgsr # status -On NetBSD-current, clang builds successfully on several architectures. -These builds are with all three of the above flags enabled. - -https://releng.netbsd.org/builds/HEAD-llvm/ +[[NetBSD-current clang build status|https://releng.netbsd.org/builds/HEAD-llvm/]]