diff options
| author | ruki <[email protected]> | 2020-05-12 23:53:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-12 17:21:08 +0800 |
| commit | 1de75437bb7d27c8ff9eae565768369c864854bd (patch) | |
| tree | fd3ff340523c2af23e393470d5fb6bfe941e6ff6 | |
| parent | f1775e8c526d520d22c65337c4eead5014deb8c5 (diff) | |
improve llvm-ar
| -rw-r--r-- | xmake/modules/core/tools/llvm_ar.lua | 3 |
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 |
