Skip to content

Commit

Permalink
Add convenience forwards/translations to cmake configure wrapper
Browse files Browse the repository at this point in the history
Translate --ccache and --sanitize=foo into corresponding cmake
variables.

Change-Id: If6e20a715ace7e55e498e3398c592295a4f264c3
Reviewed-by: Ville Voutilainen <[email protected]>
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
tronical committed Apr 1, 2020
1 parent 4888e3e commit a845e1d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit a845e1d

Please sign in to comment.