From a845e1db18fceb660bb8d8c339f4c1aa5d876927 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 30 Mar 2020 09:46:26 +0200 Subject: Add convenience forwards/translations to cmake configure wrapper Translate --ccache and --sanitize=foo into corresponding cmake variables. Change-Id: If6e20a715ace7e55e498e3398c592295a4f264c3 Reviewed-by: Ville Voutilainen Reviewed-by: Alexandru Croitor --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure') 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 ;; -- cgit v1.2.3