diff options
| author | ruki <[email protected]> | 2016-06-16 21:16:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-16 21:16:41 +0800 |
| commit | 7981a59dbd3263bb1bffee42fc680118a465b869 (patch) | |
| tree | e23a83e9f01bf0138fa73c85a982b43faf5cce48 | |
| parent | 83c4da5def52fcc0d825d20f16df77792378a3f7 (diff) | |
check archs arguments for package action
| -rwxr-xr-x | xmake/actions/package/main.lua | 10 | ||||
| -rwxr-xr-x | xmake/actions/package/xmake.lua | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/xmake/actions/package/main.lua b/xmake/actions/package/main.lua index 5907517d8..caa6aff53 100755 --- a/xmake/actions/package/main.lua +++ b/xmake/actions/package/main.lua @@ -184,6 +184,16 @@ end -- main function main() + -- --archs? deprecated + if option.get("archs") then + + -- load config + config.load() + + -- deprecated + raise("please run \"xmake m package %s\" instead of \"xmake p --archs=%s\"", config.get("plat"), option.get("archs")) + end + -- get the target name local targetname = option.get("target") diff --git a/xmake/actions/package/xmake.lua b/xmake/actions/package/xmake.lua index 9ebf7f6c4..ce367ca88 100755 --- a/xmake/actions/package/xmake.lua +++ b/xmake/actions/package/xmake.lua @@ -44,7 +44,7 @@ task("package") , options = { {'o', "outputdir", "kv", nil, "Set the output directory." } - + , {'a', "archs", "kv", nil, "Compile for the given architecture. (deprecated)" } , {} , {nil, "target", "v", "all", "Package a given target" } } |
