diff options
| -rwxr-xr-x | xmake/plugins/macro/macros/package.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/macro/macros/package.lua b/xmake/plugins/macro/macros/package.lua index 446fe595f..b96e11e91 100755 --- a/xmake/plugins/macro/macros/package.lua +++ b/xmake/plugins/macro/macros/package.lua @@ -29,6 +29,7 @@ import("core.platform.platform") -- -- .e.g -- xmake m package +-- xmake m package . "-m debug" -- xmake m package linux -- xmake m package iphoneos "-m debug --xxx ..." -- @@ -36,6 +37,9 @@ function main(argv) -- get plat local plat = argv[1] or os.host() + if plat == "." then + plat = os.host() + end -- get args local args = argv[2] or "" |
