Skip to content

Commit

Permalink
Set optimization only for release
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Dec 22, 2020
1 parent 1e66cf4 commit f95de4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ add_requires("spdlog", "nlohmann_json", "minhook", "imgui", "sol2", "tiltedcore"

add_rules("mode.debug", "mode.release")

--add_ldflags("/LTCG", "/OPT:REF")
--add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")
if is_mode("release") then
add_ldflags("/LTCG", "/OPT:REF")
add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-")

set_optimize("fastest")
set_optimize("fastest")
end

target("RED4ext")
set_kind("static")
Expand Down

0 comments on commit f95de4b

Please sign in to comment.