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

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.  
        !             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.5       maya        8:     CLANGBASE=/usr
1.1       gdt         9: 
1.5       maya       10: And run "build.sh release". This will apply for both pkgsrc and base.
1.1       gdt        11: 
                     12: 
1.6       maya       13: 
1.8     ! wiki       14: tunable                | explanation
        !            15: -----------------------|----------------------------------------------------
1.7       maya       16: MKGCC=no               | needed as building GCC alongside is not maintained.  
                     17: MKLLVM=yes             | builds LLVM libraries.  
                     18: HAVE_LLVM=yes          | controls clang being built  
                     19: CLANGBASE=/usr         | instructs pkgsrc where to look for the compiler
1.4       gdt        20: 
                     21: # status
                     22: 
1.8     ! wiki       23: [[NetBSD-current clang build status|https://releng.netbsd.org/builds/HEAD-llvm/]]

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