Skip to content

Commit

Permalink
Fix debug compilation on MSVC due to libtommath requiring dead code e…
Browse files Browse the repository at this point in the history
…limination
  • Loading branch information
Laupetin committed Nov 19, 2023
1 parent 11671a6 commit f653fdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thirdparty/libtommath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit f653fdc

Please sign in to comment.