summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-06-03 11:07:43 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-06-03 11:07:43 +0200
commit1de7443921ea94b5d9f1e5cb6ecfd5a9b8906a7b (patch)
tree8021fa3a91890a325f1f1a6f73f8f78557afc2b4 /configure
parentebdf0b28459ed683eae146a73e2eb4a570b0522b (diff)
downloadtqt3-1de74439.tar.gz
tqt3-1de74439.zip
Add mkspecs for build with Clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 7ebbfb98..17ec389c 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
+ ;;
*)
#
;;