Commit 194bcb9e authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Marius Wachtler

Have Debug builds default to ref checking

Otherwise old build directories will switch to not having refchecking.
parent 37aac263
......@@ -49,7 +49,11 @@ option(ENABLE_LLVM_DEBUG "LLVM debug symbols" OFF)
option(ENABLE_OPROFILE "enable oprofile support" OFF)
option(ENABLE_SELF_HOST "use pyston to test pyston" OFF)
option(ENABLE_VALGRIND "pyston valgrind support" OFF)
option(ENABLE_REF_DEBUG "enable memory and refcounting debugging" OFF)
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
option(ENABLE_REF_DEBUG "enable memory and refcounting debugging" ON)
else()
option(ENABLE_REF_DEBUG "enable memory and refcounting debugging" OFF)
endif()
option(ENABLE_PGO "enable -fprofile-generate/-fprofile-use" OFF)
option(ENABLE_LTO "enable -flto" OFF)
......
......@@ -655,7 +655,7 @@ $(CMAKE_SETUP_DBG):
@$(MAKE) cmake_check
@$(MAKE) clang_check
@mkdir -p $(CMAKE_DIR_DBG)
cd $(CMAKE_DIR_DBG); CC='clang' CXX='clang++' cmake $(COMMON_CMAKE_OPTIONS) -DCMAKE_BUILD_TYPE=Debug -DENABLE_REF_DEBUG=ON
cd $(CMAKE_DIR_DBG); CC='clang' CXX='clang++' cmake $(COMMON_CMAKE_OPTIONS) -DCMAKE_BUILD_TYPE=Debug
$(CMAKE_SETUP_RELEASE):
@$(MAKE) cmake_check
@$(MAKE) clang_check
......
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