summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/llvm_ar.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/llvm_ar.lua b/xmake/modules/core/tools/llvm_ar.lua
index 0d890bd5c..b9674ffaf 100644
--- a/xmake/modules/core/tools/llvm_ar.lua
+++ b/xmake/modules/core/tools/llvm_ar.lua
@@ -24,6 +24,9 @@ import("core.tool.compiler")
-- init it
function init(self)
self:set("arflags", "cr")
+ if is_plat("cross") and is_subhost("windows") then
+ self:set("formats", { static = "$(name).lib" })
+ end
end
-- make the strip flag