summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-11 21:54:58 +0800
committerruki <[email protected]>2022-09-11 21:54:58 +0800
commit23dd02721252011d6305186bcb478e96e597841a (patch)
tree93f2cf8fe34ee8d333e44bdeeed4461b4cf80691
parent43ca57ce4252e4c2bce03b04ce04bb2f1245b01a (diff)
improve package and remove i386 for macosx
-rw-r--r--xmake/platforms/macosx/xmake.lua2
-rw-r--r--xmake/plugins/macro/macros/package.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/platforms/macosx/xmake.lua b/xmake/platforms/macosx/xmake.lua
index 8571a13c4..c7465b109 100644
--- a/xmake/platforms/macosx/xmake.lua
+++ b/xmake/platforms/macosx/xmake.lua
@@ -28,7 +28,7 @@ platform("macosx")
set_hosts("macosx")
-- set archs
- set_archs("i386", "x86_64", "arm64")
+ set_archs("x86_64", "arm64")
-- set formats
set_formats("static", "lib$(name).a")
diff --git a/xmake/plugins/macro/macros/package.lua b/xmake/plugins/macro/macros/package.lua
index c220cbe42..c04443ae2 100644
--- a/xmake/plugins/macro/macros/package.lua
+++ b/xmake/plugins/macro/macros/package.lua
@@ -63,9 +63,9 @@ function main(argv)
-- package it
if args.outputdir then
- os.exec("xmake p -o %s %s", args.outputdir, option.get("verbose") and "-v" or "")
+ os.exec("xmake p -f oldpkg -o %s %s", args.outputdir, option.get("verbose") and "-v" or "")
else
- os.exec("xmake p %s", option.get("verbose") and "-v" or "")
+ os.exec("xmake p -f oldpkg %s", option.get("verbose") and "-v" or "")
end
end