|
Lines 4-8
Link Here
|
| 4 |
|
4 |
|
| 5 |
# Check if clang/clang++ exist before setting them so that we can more easily |
5 |
# Check if clang/clang++ exist before setting them so that we can more easily |
| 6 |
# switch to this profile and build stages. |
6 |
# switch to this profile and build stages. |
| 7 |
type -P clang > /dev/null && export CC=clang |
7 |
# Some packages will require BUILD_{CC,CXX} variables, bug 595878. |
| 8 |
type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ |
8 |
type -P clang > /dev/null && export CC=clang && export BUILD_CC=clang |
|
|
9 |
type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ && export BUILD_CXX=clang++ |