summaryrefslogtreecommitdiff
path: root/src/pal/tools/setup-compiler-clang.sh
blob: 56b75f6a25c657161882693f810aa3814960791d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
#
# This file sets the environment to be used for building with clang.
#

if which clang-3.5 > /dev/null 2>&1 
    then  
        export CC="$(which clang-3.5)" 
        export CXX="$(which clang++-3.5)"    
elif which clang > /dev/null 2>&1 
    then 
        export CC="$(which clang)" 
        export CXX="$(which clang++)"   
else  
    echo "Unable to find Clang Compiler" 
    exit 1 
fi