File:  [NetBSD Developer Wiki] / wikisrc / tutorials / clang.mdwn
Revision 1.10: download - view: text, annotated - select for diffs
Wed Nov 7 07:01:41 2018 UTC (2 years, 2 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by maya: change . to :

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:


And run " release". This will apply for both pkgsrc and base.

tunable                | explanation
MKGCC=no               | needed as building GCC alongside is not maintained
MKLLVM=yes             | builds LLVM libraries
HAVE_LLVM=yes          | controls clang being built
PKGSRC_COMPILER=clang  | instructs pkgsrc it's clang
CLANGBASE=/usr         | instructs pkgsrc where to look for the compiler

# status

[[NetBSD-current clang build status|]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb