summaryrefslogtreecommitdiff
path: root/xmake/modules/utils/archive/merge_staticlib.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-04 23:16:14 +0800
committerruki <[email protected]>2021-09-04 23:16:14 +0800
commitfeefe1dce66ea47e4a968887fbcb81cb0f9caf33 (patch)
treed44c86f8068561bbb6a4910e81ad3edb0f2240ea /xmake/modules/utils/archive/merge_staticlib.lua
parentb5b490676355766b03ca366fe3900495cbf4a9fa (diff)
improve mergelib
Diffstat (limited to 'xmake/modules/utils/archive/merge_staticlib.lua')
-rw-r--r--xmake/modules/utils/archive/merge_staticlib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/archive/merge_staticlib.lua b/xmake/modules/utils/archive/merge_staticlib.lua
index 8675f6c52..b5adbd98f 100644
--- a/xmake/modules/utils/archive/merge_staticlib.lua
+++ b/xmake/modules/utils/archive/merge_staticlib.lua
@@ -24,7 +24,7 @@ import("core.base.option")
-- merge *.a archive libraries for ar
function _merge_for_ar(target, program, outputfile, libraryfiles, opt)
opt = opt or {}
- if target:is_plat("macosx") then
+ if target:is_plat("macosx", "iphoneos", "watchos", "appletvos") then
os.vrunv("libtool", table.join("-static", "-o", outputfile, libraryfiles))
else
os.vrunv(program, table.join("crsT", outputfile, libraryfiles))