diff options
| author | Dave Huseby <dhuseby@mozilla.com> | 2015-07-28 21:23:19 -0700 |
|---|---|---|
| committer | Dave Huseby <dhuseby@mozilla.com> | 2015-07-28 21:23:19 -0700 |
| commit | 40eb53c409b7a6cd49e092e99c35bb8625767644 (patch) | |
| tree | c67d2201c0146be997cffba40ed9721412b80ee6 | |
| parent | 68fc2d98d547a7045e918b03117c740179addb77 (diff) | |
| download | rust-40eb53c409b7a6cd49e092e99c35bb8625767644.tar.gz rust-40eb53c409b7a6cd49e092e99c35bb8625767644.zip | |
recent changes to search for gcc/clang on freebsd and this fixes #14381
| -rwxr-xr-x | configure | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/configure b/configure index cf349af6488..2c8d78598b2 100755 --- a/configure +++ b/configure @@ -1005,11 +1005,9 @@ then (''|*clang) CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version) - if [[ $CFG_CLANG_REPORTED_VERSION == *"(based on LLVM "* ]] - then + if echo $CFG_CLANG_REPORTED_VERSION | grep -q "(based on LLVM "; then CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/') - elif [[ $CFG_CLANG_REPORTED_VERSION == "Apple LLVM"* ]] - then + elif echo $CFG_CLANG_REPORTED_VERSION | grep -q "Apple LLVM"; then CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/') else CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/') |
