From a31c71b00909fe1808f5820c89f78ea5b3eb146c Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 17 Aug 2020 00:12:21 -0500 Subject: [PATCH] fix compilation with shipping flag --- Tools/CMake/torqueConfig.h.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/CMake/torqueConfig.h.in b/Tools/CMake/torqueConfig.h.in index 92a01536f..8687de9af 100644 --- a/Tools/CMake/torqueConfig.h.in +++ b/Tools/CMake/torqueConfig.h.in @@ -153,7 +153,7 @@ #ifdef TORQUE_DEBUG #define TORQUE_GATHER_METRICS 0 - #define TORQUE_ENABLE_PROFILE_PATH + #ifndef TORQUE_DEBUG_GUARD #define TORQUE_DEBUG_GUARD #endif @@ -180,7 +180,9 @@ // Enable the profiler by default, if we're not doing a shipping build. #define TORQUE_ENABLE_PROFILER - + #ifdef TORQUE_DEBUG + #define TORQUE_ENABLE_PROFILE_PATH + #endif // Enable the TorqueScript assert() instruction if not shipping. #define TORQUE_ENABLE_SCRIPTASSERTS