From 616def92fdf88d8769c8fef5f0840fb2e32da35c Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 2 Dec 2024 18:40:04 -0800 Subject: [PATCH] build: Only enable asserts on debug builds --- joltphysics/joltphysics_settings.vpc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/joltphysics/joltphysics_settings.vpc b/joltphysics/joltphysics_settings.vpc index 922c8fe0..d411a395 100644 --- a/joltphysics/joltphysics_settings.vpc +++ b/joltphysics/joltphysics_settings.vpc @@ -11,8 +11,6 @@ $Configuration $AdditionalIncludeDirectories "$BASE;$SRCDIR\vphysics_jolt\joltphysics\src" $PreprocessorDefinitions "$BASE;JPH_DISABLE_CUSTOM_ALLOCATOR;JPH_DEBUG_RENDERER" - $PreprocessorDefinitions "$BASE;JPH_ENABLE_ASSERTS" [$DEVELOPMENT_ONLY] - //$PreprocessorDefinitions "$BASE;JPH_PROFILE_ENABLED" [$DEVELOPMENT_ONLY] // Feature test stuff for the AVX2 build $PreprocessorDefinitions "$BASE;JPH_USE_SSE4_1;JPH_USE_SSE4_2;JPH_USE_AVX;JPH_USE_AVX2;JPH_USE_LZCNT;JPH_USE_TZCNT;JPH_USE_F16C;JPH_USE_FMADD" [$VOLT_AVX2] @@ -28,3 +26,12 @@ $Configuration $EnableEnhancedInstructionSet "Streaming SIMD Extensions 2 (/arch:SSE2)" [$WIN32 && $VOLT_SSE2] // Source 2013 doesn't enable this by default } } + +$Configuration "Debug" +{ + $Compiler + { + $PreprocessorDefinitions "$BASE;JPH_ENABLE_ASSERTS" + //$PreprocessorDefinitions "$BASE;JPH_PROFILE_ENABLED" + } +}