Skip to content

Commit

Permalink
build: Only enable asserts on debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Dec 3, 2024
1 parent 9f3bff4 commit 076f020
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions joltphysics/joltphysics_settings.vpc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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"
}
}

0 comments on commit 076f020

Please sign in to comment.