From 80af97d2fb131d6c8a4eaff114035ecc578499e5 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Mar 2024 23:53:23 +0800 Subject: fix set exceptions --- xmake/rules/c++/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/c++/xmake.lua') 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 -- cgit v1.3.1