diff options
| author | ruki <[email protected]> | 2016-06-08 11:11:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-08 11:11:21 +0800 |
| commit | 27d2beccf6b16e884d1c78052f0031b33d1e3225 (patch) | |
| tree | 3be21d48abb881792aa92afc1eb692a677c2fd4d /xmake/plugins/macro/macros/package.lua | |
| parent | 1cbfdb2503e78ace177846b09eecc79bf5810832 (diff) | |
modify package arguments
Diffstat (limited to 'xmake/plugins/macro/macros/package.lua')
| -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 "" |
