summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/xrepo/action/install.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index fe83daa41..1165b8161 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -43,6 +43,7 @@ function menu_options()
{},
{nil, "ndk", "kv", nil, "Set the android NDK directory." },
{nil, "sdk", "kv", nil, "Set the SDK directory of cross toolchain." },
+ {nil, "toolchain", "kv", nil, "Set the toolchain name." },
{nil, "mingw", "kv", nil, "Set the MingW SDK directory." },
{},
{'f', "force", "k", nil, "Force to reinstall all package dependencies."},
@@ -124,6 +125,9 @@ function _install_packages(packages)
if option.get("mingw") then
table.insert(config_argv, "--mingw=" .. option.get("mingw"))
end
+ if option.get("toolchain") then
+ table.insert(config_argv, "--toolchain=" .. option.get("toolchain"))
+ end
os.vrunv("xmake", config_argv)
-- do install