From 90d4e52169ee906e67dd3df2587737954552159d Mon Sep 17 00:00:00 2001 From: Sara Date: Sat, 4 Nov 2023 20:41:32 +0100 Subject: [PATCH] updated premake to include debug symbols in Debug config and optimize in Release config --- premake5.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/premake5.lua b/premake5.lua index b39509f..e97d585 100644 --- a/premake5.lua +++ b/premake5.lua @@ -9,8 +9,12 @@ project "fencer" files { "src/**.c" } links { "SDL2", "SDL2_image", "cjson", "m" } buildoptions { "-Wall", "-DVMATH_SDL=1" } - filter { "configurations:Debug" } + targetdir "bin/" + filter "configurations:Debug" + defines { "DEBUG" } buildoptions { "-g3" } - targetdir "bin/" - filter { "configurations:Release" } + symbols "On" + filter "configurations:Release" buildoptions { "-g0" } + defines { "NDEBUG" } + optimize "On"