How to install clang 3.1 using macports? (OSX, snow leopard)

I want to install the latest clang (3.1) compiler using macports (I use emacs, not xcode, but the version of clang that comes with xcode is older anyway). macports seems to have the latest versions of gcc, but when I enter the "list list clang", the only version that appears is 2.9. I am using the features of C ++ 11, so I want to use the latest version.

I run a snow leopard on MBP.

+5
source share
3 answers

Clang has several different versions available on MacPorts:

$ port search clang

clang @2.9 (lang)
    C, C++, Objective C and Objective C++ compiler

clang-2.9 @2.9 (lang)
    C, C++, Objective C and Objective C++ compiler

clang-3.0 @3.0 (lang)
    C, C++, Objective C and Objective C++ compiler

clang-3.1 @3.1-r154872 (lang)
    C, C++, Objective C and Objective C++ compiler

clang-devel @3.0 (lang)
    C, C++, Objective C and Objective C++ compiler

clang_select @0.1 (sysutils)
    common files for selecting default clang version

Found 6 ports.

, clang, 2.9. 3.1, clang-3.1. clang_select, , Clang; Clang, .

+9

: port list clang-3.1

. , , .

+1

macports clang, clang , macports.

0

All Articles