Annotation of wikisrc/tutorials/clang.mdwn, revision 1.10

1.8       wiki        1: Since NetBSD 6, the base system has included clang.  
                      2: It works on ARM, PowerPC, x86, and possibly SPARC64, but is not built by default.  
1.10    ! wiki        3: To use it, set in mk.conf:
1.1       gdt         4: 
1.5       maya        5:     MKGCC=no
1.1       gdt         6:     MKLLVM=yes
                      7:     HAVE_LLVM=yes
1.9       wiki        8:     PKGSRC_COMPILER=clang
1.5       maya        9:     CLANGBASE=/usr
1.1       gdt        10: 
1.5       maya       11: And run "build.sh release". This will apply for both pkgsrc and base.
1.1       gdt        12: 
                     13: 
1.6       maya       14: 
1.8       wiki       15: tunable                | explanation
                     16: -----------------------|----------------------------------------------------
1.9       wiki       17: MKGCC=no               | needed as building GCC alongside is not maintained
                     18: MKLLVM=yes             | builds LLVM libraries
                     19: HAVE_LLVM=yes          | controls clang being built
                     20: PKGSRC_COMPILER=clang  | instructs pkgsrc it's clang
1.7       maya       21: CLANGBASE=/usr         | instructs pkgsrc where to look for the compiler
1.4       gdt        22: 
                     23: # status
                     24: 
1.8       wiki       25: [[NetBSD-current clang build status|https://releng.netbsd.org/builds/HEAD-llvm/]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb