summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJostein Kjønigsen <jostein@kjonigsen.net>2015-04-03 10:22:48 +0000
committerJostein Kjønigsen <jostein@kjonigsen.net>2015-04-03 10:30:19 +0000
commit080b2e0ead54994854b850949e9ebca613ac5197 (patch)
tree595ba216f9a986e0ea6237a1ed83fe4a97ff9c35
parent940483658c1b25f7f56fb3529a138090342afac1 (diff)
downloadcoreclr-080b2e0ead54994854b850949e9ebca613ac5197.tar.gz
coreclr-080b2e0ead54994854b850949e9ebca613ac5197.tar.bz2
coreclr-080b2e0ead54994854b850949e9ebca613ac5197.zip
Detect clang35 on FreeBSD.
clang-3.5 is required to build correctly, but is not detected on FreeBSD where it is aliased as clang35 and clang++35, not clang-3.5 and clang++-3.5. This closes https://github.com/dotnet/coreclr/issues/615
-rwxr-xr-xsrc/pal/tools/setup-compiler-clang.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pal/tools/setup-compiler-clang.sh b/src/pal/tools/setup-compiler-clang.sh
index 56b75f6a25..bc74d6fec3 100755
--- a/src/pal/tools/setup-compiler-clang.sh
+++ b/src/pal/tools/setup-compiler-clang.sh
@@ -7,6 +7,10 @@ if which clang-3.5 > /dev/null 2>&1
then
export CC="$(which clang-3.5)"
export CXX="$(which clang++-3.5)"
+elif which clang35 > /dev/null 2>&1
+ then
+ export CC="$(which clang35)"
+ export CXX="$(which clang++35)"
elif which clang > /dev/null 2>&1
then
export CC="$(which clang)"