Download link: clang 3.8
This is an installer for clang 3.8 x86. It has been tested and is known to work on these operating systems:
- Mac OS 10.4
- Mac OS 10.5
- Mac OS 10.6
- Mac OS 10.7
It can create x86 32-bit and 64-bit binaries.
This is the software that comes with the installer:
- bzip2
- cctools
- clang_select
- db48
- expat
- gettext
- ld64
- ld64-97
- libedit
- libffi
- libgcc
- libgcc7
- libiconv
- llvm-3.8
- llvm_select
- ncurses
- openssl
- python27
- python2_select
- python_select
- sqlite3
- zlib
- clang-3.8
It is installed to /opt/local/bin. If you are not sure about this software I suggest moving your /opt folder before you try this software. Then simply remove this folder if you decide you don't want it. If you do wish to keep it then you would want to remove the /opt folder and replace it with the original one. Then install the software again. The /opt folder is used by Macports.
The compiler is called clang-mp-3.8. It is installed here: /opt/local/bin/clang-mp-3.8
The alias command can be used to have this compiler called when using a custom name like clang.
This is what I suggest you add to your ~/.profile file:
To create a 32-bit x86 binary use "-arch i386".
To create a 64-bit x86 binary use "-arch x86_64".
Example to create a fat binary:
Enjoy
This is an installer for clang 3.8 x86. It has been tested and is known to work on these operating systems:
- Mac OS 10.4
- Mac OS 10.5
- Mac OS 10.6
- Mac OS 10.7
It can create x86 32-bit and 64-bit binaries.
This is the software that comes with the installer:
- bzip2
- cctools
- clang_select
- db48
- expat
- gettext
- ld64
- ld64-97
- libedit
- libffi
- libgcc
- libgcc7
- libiconv
- llvm-3.8
- llvm_select
- ncurses
- openssl
- python27
- python2_select
- python_select
- sqlite3
- zlib
- clang-3.8
It is installed to /opt/local/bin. If you are not sure about this software I suggest moving your /opt folder before you try this software. Then simply remove this folder if you decide you don't want it. If you do wish to keep it then you would want to remove the /opt folder and replace it with the original one. Then install the software again. The /opt folder is used by Macports.
The compiler is called clang-mp-3.8. It is installed here: /opt/local/bin/clang-mp-3.8
The alias command can be used to have this compiler called when using a custom name like clang.
This is what I suggest you add to your ~/.profile file:
- alias clang=/opt/local/bin/clang-mp-3.8
- alias clang++=/opt/local/bin/clang++-mp-3.8
To create a 32-bit x86 binary use "-arch i386".
To create a 64-bit x86 binary use "-arch x86_64".
Example to create a fat binary:
Code:
clang++ -o program -arch i386 -arch x86_64 main.cpp && ./program
Enjoy