summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-03-30 09:46:26 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2020-04-01 22:57:18 +0200
commita845e1db18fceb660bb8d8c339f4c1aa5d876927 (patch)
tree9e225613735e4b6e8148229ea8c66cd9b317da0b /configure
parent4888e3e8401dc2e949f7e575c0e1e0036d746af6 (diff)
Add convenience forwards/translations to cmake configure wrapper
Translate --ccache and --sanitize=foo into corresponding cmake variables. Change-Id: If6e20a715ace7e55e498e3398c592295a4f264c3 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 34312cbcf8..d0aa090d93 100755
--- a/configure
+++ b/configure
@@ -161,6 +161,15 @@ $i"
CMAKE_CMDLINE="$CMAKE_CMDLINE
-DFEATURE_${VAR}=OFF"
;;
+ --sanitize=*)
+ VAR=`echo $i | sed 's,^--sanitize=\(.*\),\1,'`
+ CMAKE_CMDLINE="$CMAKE_CMDLINE
+-DECM_ENABLE_SANITIZERS=${VAR}"
+ ;;
+ --ccache)
+ CMAKE_CMDLINE="$CMAKE_CMDLINE
+-DQT_USE_CCACHE=ON"
+ ;;
--)
PASSTHRU=yes
;;