From 1de75437bb7d27c8ff9eae565768369c864854bd Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 May 2020 23:53:31 +0800 Subject: improve llvm-ar --- xmake/modules/core/tools/llvm_ar.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1