diff options
| author | ruki <[email protected]> | 2020-10-28 00:48:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-28 00:48:21 +0800 |
| commit | 3b74bb00d24587b4768ac10c9ef4222f01ae9225 (patch) | |
| tree | 22db6049cedbe4ba8b63f1fb190b5443c93203ec | |
| parent | 0a70179e27508b0850f5b6413268ff8bade15342 (diff) | |
add toolchain for xrepo
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 4 |
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 |
