Skip to content

Commit

Permalink
fix set exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Mar 14, 2024
1 parent b8d9e29 commit 80af97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/rules/c++/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80af97d

Please sign in to comment.