Skip to content

Commit

Permalink
enable exceptions by default in package
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 25, 2022
1 parent c8eac26 commit bccf73f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmake/core/package/package.lua
Expand Up @@ -1976,6 +1976,10 @@ function _instance:_generate_build_configs(configs, opt)
end
end
end
-- enable exceptions for msvc by default
if opt.sourcekind == "cxx" and configs.exceptions == nil and self:has_tool("cxx", "cl") then
configs.exceptions = "cxx"
end
if configs and (configs.ldflags or configs.shflags) then
configs.force = {ldflags = configs.ldflags, shflags = configs.shflags}
configs.ldflags = nil
Expand Down

0 comments on commit bccf73f

Please sign in to comment.