summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-03-14 23:53:23 +0800
committerruki <[email protected]>2024-03-14 23:53:23 +0800
commit80af97d2fb131d6c8a4eaff114035ecc578499e5 (patch)
treeec82d1830086232ccc251720585701d675b320d9 /xmake/rules/c++/xmake.lua
parentb8d9e2924de37c04861b9e92ba841e4fe0878c69 (diff)
fix set exceptions
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
-rw-r--r--xmake/rules/c++/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua
index dedb63ed5..49e1963a9 100644
--- a/xmake/rules/c++/xmake.lua
+++ b/xmake/rules/c++/xmake.lua
@@ -37,7 +37,7 @@ rule("c++.build")
on_config(function (target)
-- we enable c++ exceptions by default
if target:is_plat("windows") and not target:get("exceptions") then
- target:set("exception", "cxx")
+ target:set("exceptions", "cxx")
end
-- https://github.com/xmake-io/xmake/issues/4621
if target:is_plat("windows") and target:is_static() and target:has_tool("cxx", "tcc") then