File:  [NetBSD Developer Wiki] / wikisrc / tutorials / clang.mdwn
Revision 1.8: download - view: text, annotated - select for diffs
Wed Nov 7 06:56:34 2018 UTC (21 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by maya: omit link to pkgsrc clang page, actually a table, less text to -current builds, markdown touchups.

    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.
    4: 
    5:     MKGCC=no
    6:     MKLLVM=yes
    7:     HAVE_LLVM=yes
    8:     CLANGBASE=/usr
    9: 
   10: And run "build.sh release". This will apply for both pkgsrc and base.
   11: 
   12: 
   13: 
   14: tunable                | explanation
   15: -----------------------|----------------------------------------------------
   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
   20: 
   21: # status
   22: 
   23: [[NetBSD-current clang build status|https://releng.netbsd.org/builds/HEAD-llvm/]]

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