summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-19 23:42:42 +0800
committerruki <[email protected]>2024-01-19 23:42:42 +0800
commit1cc76ae4ad9527a7e937f79e977be9c4a11ff6dc (patch)
tree1922ad49226d6d7bea9e97b19683a36775c239cf
parentd6b735946decd66fe980899e65f8cbaf187d2ea5 (diff)
fix extension
-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)