diff options
author | Jostein Kjønigsen <jostein@kjonigsen.net> | 2015-04-03 10:22:48 +0000 |
---|---|---|
committer | Jostein Kjønigsen <jostein@kjonigsen.net> | 2015-04-03 10:30:19 +0000 |
commit | 080b2e0ead54994854b850949e9ebca613ac5197 (patch) | |
tree | 595ba216f9a986e0ea6237a1ed83fe4a97ff9c35 | |
parent | 940483658c1b25f7f56fb3529a138090342afac1 (diff) | |
download | coreclr-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-x | src/pal/tools/setup-compiler-clang.sh | 4 |
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)" |