Skip to content

Commit

Permalink
Pass the rights flags to lua project
Browse files Browse the repository at this point in the history
Use Speed optimizations for release, and no optimizations for debug
  • Loading branch information
edo9300 committed Sep 21, 2024
1 parent 31a85e9 commit 7df98f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ project "lua"
pic "On"
files { "src/*.c", "src/*.h" }
removefiles { "src/lua.c", "src/luac.c", "src/ltests.h", "src/ltests.c", "src/onelua.c" }

filter "configurations:Release"
optimize "Speed"
filter "configurations:Debug"
optimize "Off"

filter { "files:**.c" }
compileas "C++"

0 comments on commit 7df98f9

Please sign in to comment.