Skip to content

Commit

Permalink
improve optimize for cl #5012
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 25, 2024
1 parent 13ce5ca commit 5388efb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xmake/modules/core/tools/cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ function nf_optimize(self, level)
{
none = "-Od"
, faster = "-Ox"
, fastest = "-O2 -fp:fast"
, fastest = "-O2"
, smallest = "-O1 -GL" -- /GL and (/OPT:REF is on by default in linker), we need to enable /ltcg
, aggressive = "-O2 -fp:fast"
, aggressive = "-O2"
}
return maps[level]
end
Expand Down
2 changes: 1 addition & 1 deletion xmake/modules/core/tools/clang_cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function nf_optimize(self, level)
, faster = "-Ox"
, fastest = "-O2"
, smallest = "-O1"
, aggressive = "-O2 -fp:fast"
, aggressive = "-O2"
}
return maps[level]
end
Expand Down

0 comments on commit 5388efb

Please sign in to comment.