diff options
| author | ruki <[email protected]> | 2022-11-26 00:46:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-26 00:46:11 +0800 |
| commit | bccf73f440098e64a92ea6bfd2aba0f04fbc9e35 (patch) | |
| tree | 1ad120db1105f61799bd6deb3260f37ff179e8b6 | |
| parent | c8eac266f1b3cce1f38b550da1fe3f9d02fd4d12 (diff) | |
enable exceptions by default in package
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index af523d2dc..a0af9f747 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -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 |
