define NDEBUG if not using debug CRT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -266,6 +266,11 @@
|
|||||||
<set var="DEBUG_DEFINE">
|
<set var="DEBUG_DEFINE">
|
||||||
<if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if>
|
<if cond="DEBUG_FLAG=='0'">wxDEBUG_LEVEL=0</if>
|
||||||
</set>
|
</set>
|
||||||
|
<set var="NDEBUG_DEFINE">
|
||||||
|
<if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">NDEBUG</if>
|
||||||
|
<if cond="FORMAT!='autoconf' and DEBUG_RUNTIME_LIBS=='0'">NDEBUG</if>
|
||||||
|
</set>
|
||||||
|
|
||||||
<!-- does not cover all cases, but better than nothing -->
|
<!-- does not cover all cases, but better than nothing -->
|
||||||
<set var="NO_VC_CRTDBG">
|
<set var="NO_VC_CRTDBG">
|
||||||
<if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if>
|
<if cond="FORMAT=='msvc' and BUILD=='debug' and DEBUG_RUNTIME_LIBS=='0'">__NO_VC_CRTDBG__</if>
|
||||||
@@ -496,6 +501,7 @@ $(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\r
|
|||||||
<define>__WX$(TOOLKIT)__</define>
|
<define>__WX$(TOOLKIT)__</define>
|
||||||
<define>$(WXUNIV_DEFINE)</define>
|
<define>$(WXUNIV_DEFINE)</define>
|
||||||
<define>$(DEBUG_DEFINE)</define>
|
<define>$(DEBUG_DEFINE)</define>
|
||||||
|
<define>$(NDEBUG_DEFINE)</define>
|
||||||
<define>$(EXCEPTIONS_DEFINE)</define>
|
<define>$(EXCEPTIONS_DEFINE)</define>
|
||||||
<define>$(RTTI_DEFINE)</define>
|
<define>$(RTTI_DEFINE)</define>
|
||||||
<define>$(THREAD_DEFINE)</define>
|
<define>$(THREAD_DEFINE)</define>
|
||||||
|
Reference in New Issue
Block a user