Difference between revisions of "Clang"

From ArchWiki
Jump to: navigation, search
(Build packages with Clang)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Clang is a compiler set based on LLVM. It is distributed under BSD Licence.
+
[[Category:Package development]]
 +
[http://clang.llvm.org/ Clang] is a compiler set based on LLVM. It is distributed under BSD Licence.
 +
== Installation ==
 +
Install {{pkg|clang}} form the [[Official Repositories]].
  
 
+
== Build packages with Clang ==
== Install ==
+
Add {{ic|1=export CC=clang}} and (for c++) {{ic|1=export CXX=clang++}} to your {{ic|/etc/makepkg.conf}}.
Clang is in [extra] repository. You can install it by running
+
  pacman -S clang
+
 
+
== using Clang to build your packages ==
+
You can edit you /etc/makepkg.conf and add a line
+
  export CC=clang
+

Revision as of 15:43, 18 November 2012

Clang is a compiler set based on LLVM. It is distributed under BSD Licence.

Installation

Install clang form the Official Repositories.

Build packages with Clang

Add export CC=clang and (for c++) export CXX=clang++ to your /etc/makepkg.conf.