diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2018-02-08 10:02:43 +0000 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-02-08 10:04:08 +0000 |
commit | cf80aa894ccb6c2e30d1a7993ee60e9a1f7b5650 (patch) | |
tree | 6cdaa5a54240d7f5c68308e1e3dee61376aedd78 | |
parent | 8ce47075b5886bde777047b1bdb59eb4440712df (diff) |
common-functions: support CLANG profiles other than 3.5
Support both CLANG35 and CLANG38 profiles, since they both now work.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r-- | common-functions | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/common-functions b/common-functions index 145c054..ae4c49a 100644 --- a/common-functions +++ b/common-functions @@ -103,15 +103,20 @@ function get_clang_version { clang_version=`$1 --version | head -1 | sed 's/^.*version\s*\([0-9]*\).\([0-9]*\).*/\1\2/g'` case $clang_version in - 35*) - echo "CLANG$clang_version" + 38|35) ;; *) echo "Unknown toolchain version '$clang_version'" >&2 - echo "Attempting to build using CLANG35 profile." >&2 - echo CLANG35 + if [ $clang_version -gt 38 ]; then + clang_version=38 + else + clang_version=35 + fi + echo "Attempting to build using CLANG$clang_version profile." >&2 ;; esac + + echo "CLANG$clang_version" } function download_patch_openssl |