From 1de7443921ea94b5d9f1e5cb6ecfd5a9b8906a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 3 Jun 2018 11:07:43 +0200 Subject: Add mkspecs for build with Clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 7ebbfb98c..17ec389cc 100755 --- a/configure +++ b/configure @@ -2826,6 +2826,17 @@ g++*) esac [ ! -z "$COMPILER_VERSION" ] && COMPILER="g++-${COMPILER_VERSION}" ;; +clang) + # Clang + QMAKE_CONF_COMPILER=`grep "QMAKE_CXX[^_A-Z0-9a-z]" $QMAKESPEC/qmake.conf | sed "s,.* *= *\(.*\)$,\1,"` + COMPILER_VERSION=`${QMAKE_CONF_COMPILER} -dumpversion 2>/dev/null | sed 's,^[^0-9]*,,g'` + case "$COMPILER_VERSION" in + *) + # Consider clang as compatible with g++-4.x and therefore the same build-key is used + COMPILER="g++-4.*" + ;; + esac + ;; *) # ;; -- cgit v1.2.1