summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/c++/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua
index 1a059c160..80d2e1417 100644
--- a/xmake/rules/c++/xmake.lua
+++ b/xmake/rules/c++/xmake.lua
@@ -25,7 +25,7 @@ rule("c.build")
on_config(function (target)
-- https://github.com/xmake-io/xmake/issues/4621
if target:is_plat("windows") and target:is_static() and target:has_tool("cc", "tcc") then
- target:set("extensions", ".a")
+ target:set("extension", ".a")
target:set("prefixname", "lib")
end
end)
@@ -37,11 +37,11 @@ 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("exceptions", "cxx")
+ target:set("exception", "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
- target:set("extensions", ".a")
+ target:set("extension", ".a")
target:set("prefixname", "lib")
end
end)