From cf80aa894ccb6c2e30d1a7993ee60e9a1f7b5650 Mon Sep 17 00:00:00 2001 From: Leif Lindholm Date: Thu, 8 Feb 2018 10:02:43 +0000 Subject: 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 --- common-functions | 13 +++++++++---- 1 file 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 -- cgit v1.2.3