Diff for /wikisrc/tutorials/clang.mdwn between versions 1.5 and 1.8

version 1.5, 2018/11/07 06:46:18 version 1.8, 2018/11/07 06:56:34
Line 1 Line 1
 This page explains how to use clang with the NetBSD base system.  Since NetBSD 6, the base system has included clang.  
 See also [how to use clang to build packages](../pkgsrc/clang/).  It works on ARM, PowerPC, x86, and possibly SPARC64, but is not built by default.  
   To use it, set in mk.conf.
 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  
   
     MKGCC=no      MKGCC=no
     MKLLVM=yes      MKLLVM=yes
Line 11  built or used by default. To use it, set Line 9  built or used by default. To use it, set
   
 And run "build.sh release". This will apply for both pkgsrc and base.  And run "build.sh release". This will apply for both pkgsrc and base.
   
 This will work on ARM, PowerPC, x86, and possibly SPARC64.  
   
 MKGCC=no        needed as building GCC alongside is not maintained.    
 MKLLVM=yes      builds LLVM libraries.    
 HAVE_LLVM=yes   controls clang being built    
 CLANGBASE=/usr  instructs pkgsrc where to look for the compiler  
   
 # status  tunable                | explanation
   -----------------------|----------------------------------------------------
   MKGCC=no               | needed as building GCC alongside is not maintained.  
   MKLLVM=yes             | builds LLVM libraries.  
   HAVE_LLVM=yes          | controls clang being built  
   CLANGBASE=/usr         | instructs pkgsrc where to look for the compiler
   
 On NetBSD-current, clang builds successfully on several architectures.  # status
 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/]]

Removed from v.1.5  
changed lines
  Added in v.1.8


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