diff options
author | Slávek Banko <[email protected]> | 2018-06-03 11:07:43 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-06-03 11:08:32 +0200 |
commit | 55827036494a29f7eba5e9a9ae298572366720bb (patch) | |
tree | aed91ae952faa03b64da94caf6e1261e468331cd /configure | |
parent | 77ba1370c5584500c0f177fc7694dfdf7ebed3b3 (diff) | |
download | tqt3-55827036494a29f7eba5e9a9ae298572366720bb.tar.gz tqt3-55827036494a29f7eba5e9a9ae298572366720bb.zip |
Add mkspecs for build with Clang
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 1de7443921ea94b5d9f1e5cb6ecfd5a9b8906a7b)
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 + ;; *) # ;; |