summaryrefslogtreecommitdiff
path: root/xmake/scripts/base
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-13 09:40:49 +0800
committerruki <[email protected]>2015-05-13 09:40:49 +0800
commitba92342286d9fabb29c97acac4c5deed0906a25b (patch)
treec651ec1678d84498dfd6d3dbd6ba585bd4abbdde /xmake/scripts/base
parent905e90debb2a79993b16d5761c2eced8fdfad4cc (diff)
add host option
Diffstat (limited to 'xmake/scripts/base')
-rw-r--r--xmake/scripts/base/main.lua1
-rw-r--r--xmake/scripts/base/option.lua6
2 files changed, 2 insertions, 5 deletions
diff --git a/xmake/scripts/base/main.lua b/xmake/scripts/base/main.lua
index d4ae4f3d7..77af72118 100644
--- a/xmake/scripts/base/main.lua
+++ b/xmake/scripts/base/main.lua
@@ -144,6 +144,7 @@ local menu =
, " - debug"
, " - release"
, " - profile" }
+ , {'-', "host", "kv", "auto", "The current host environment." }
, {}
, {'o', "output", "kv", "build", "Set the build directory" }
diff --git a/xmake/scripts/base/option.lua b/xmake/scripts/base/option.lua
index 3aaa788cd..60b769dd8 100644
--- a/xmake/scripts/base/option.lua
+++ b/xmake/scripts/base/option.lua
@@ -250,11 +250,6 @@ function option.init(argv, menu)
end
end
- -- dump options
--- for a, b in pairs(xmake._OPTIONS) do
--- print(a, b)
--- end
-
-- ok
return true
end
@@ -265,6 +260,7 @@ function option.print_menu(action)
-- no action? print main menu
if not action then
option.print_main()
+ return
end
-- the menu