diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-06-03 11:07:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-06-03 11:07:39 +0200 |
commit | b5078576ff1d83dec633044434f14c3162d85bc3 (patch) | |
tree | 41607575117c8d29f8e49e40a486160a18b9d87d /configure | |
parent | 58b25d4341e84c0bf06572e8b37e433fe3924b1f (diff) | |
download | qt3-b5078576ff1d83dec633044434f14c3162d85bc3.tar.gz qt3-b5078576ff1d83dec633044434f14c3162d85bc3.zip |
Add mkspecs for build with Clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 + ;; *) # ;; |