summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-06-03 11:07:39 +0200
committerSlávek Banko <[email protected]>2018-06-03 11:08:08 +0200
commitfbe685b96f5b67e2e14bc2d805ba23e28683ea48 (patch)
treeaacd096a289075ca1f7b18253e8c5d80e3dbb809 /configure
parent00a3d99a0711878cdefc168c180fdaa7466a7221 (diff)
downloadqt3-fbe685b96f5b67e2e14bc2d805ba23e28683ea48.tar.gz
qt3-fbe685b96f5b67e2e14bc2d805ba23e28683ea48.zip
Add mkspecs for build with Clang
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit b5078576ff1d83dec633044434f14c3162d85bc3)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 18ef585..77accf6 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
+ ;;
*)
#
;;