Commit 0df6a47f authored by Joseph Noir's avatar Joseph Noir

Fix build type propagation

parent e106fe3a
...@@ -129,7 +129,7 @@ while [ $# -ne 0 ]; do ...@@ -129,7 +129,7 @@ while [ $# -ne 0 ]; do
CMakeGenerator="$optarg" CMakeGenerator="$optarg"
;; ;;
--build-type=*) --build-type=*)
CMakeBuildType="$optarg" append_cache_entry CMAKE_BUILD_TYPE STRING "$optarg"
;; ;;
--cxx-flags=*) --cxx-flags=*)
append_cache_entry CMAKE_CXX_FLAGS STRING "$optarg" append_cache_entry CMAKE_CXX_FLAGS STRING "$optarg"
...@@ -141,7 +141,7 @@ while [ $# -ne 0 ]; do ...@@ -141,7 +141,7 @@ while [ $# -ne 0 ]; do
append_cache_entry CAF_INC_SANITIZERS STRING "$optarg" append_cache_entry CAF_INC_SANITIZERS STRING "$optarg"
;; ;;
--dev-mode) --dev-mode)
CMakeBuildType='Debug' append_cache_entry CMAKE_BUILD_TYPE STRING 'Debug'
append_cache_entry CAF_INC_SANITIZERS STRING 'address,undefined' append_cache_entry CAF_INC_SANITIZERS STRING 'address,undefined'
set_build_flag utility-targets ON set_build_flag utility-targets ON
set_build_flag export-compile-commands ON set_build_flag export-compile-commands ON
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment