diff options
Diffstat (limited to 'xmake/rules/c++')
| -rw-r--r-- | xmake/rules/c++/config/optimization.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/config/optimization.lua b/xmake/rules/c++/config/optimization.lua index 3df0be36c..6931c39fe 100644 --- a/xmake/rules/c++/config/optimization.lua +++ b/xmake/rules/c++/config/optimization.lua @@ -33,9 +33,9 @@ function _add_lto_optimization(target, sourcekind) mxx = "mxxflags" } local cflag = flagnames[sourcekind] or (sourcekind == "cxx" and "cxxflags" or "cflags") - if cc == "cl" or cc == "clang_cl" then + if cc == "cl" then target:add(cflag, "-GL") - elseif cc == "clang" or cc == "clangxx" or cc:startswith("zig") then + elseif cc == "clang" or cc == "clangxx" or cc == "clang_cl" or cc:startswith("zig") then target:add(cflag, "-flto=thin") elseif cc == "gcc" or cc == "gxx" then target:add(cflag, "-flto") |
