From 161a1924c8055f4da9c767964d1f43cecff07f37 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 19 Nov 2023 16:27:00 +0100 Subject: [PATCH] Fix debug compilation on MSVC due to libtommath requiring dead code elimination --- thirdparty/libtommath.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thirdparty/libtommath.lua b/thirdparty/libtommath.lua index dc3189c5..08163de1 100644 --- a/thirdparty/libtommath.lua +++ b/thirdparty/libtommath.lua @@ -29,6 +29,11 @@ function libtommath:project() location "%{wks.location}/thirdparty/%{prj.name}" kind "StaticLib" language "C" + + filter "configurations:Debug" + -- libtommath requires dead code elimination to work + optimize "On" + filter {} files { path.join(folder, "libtommath/*.h"),