diff options
| author | Chen Yufei <[email protected]> | 2022-03-15 07:40:24 +0800 |
|---|---|---|
| committer | Chen Yufei <[email protected]> | 2022-03-15 07:40:24 +0800 |
| commit | e3ec9c152f3ca5d6a3e07ef44a82b31cadb616e9 (patch) | |
| tree | d6044c156b03c998bb9d0e392a1bdc8a69401645 | |
| parent | bc501387029826a8dbcb6a5b7776fd8f17e37d2f (diff) | |
xrepo: export add toolchain option.
| -rw-r--r-- | xmake/modules/private/xrepo/action/export.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/export.lua b/xmake/modules/private/xrepo/action/export.lua index bb33429e1..66517bf79 100644 --- a/xmake/modules/private/xrepo/action/export.lua +++ b/xmake/modules/private/xrepo/action/export.lua @@ -42,6 +42,7 @@ function menu_options() " - xrepo export -f \"vs_runtime='MD'\" zlib", " - xrepo export -f \"regex=true,thread=true\" boost"}, {}, + {nil, "toolchain", "kv", nil, "Set the toolchain name." }, {nil, "shallow", "k", nil, "Does not export dependent packages."}, {'o', "packagedir", "kv", "packages","Set the exported packages directory."}, {nil, "packages", "vs", nil, "The packages list.", @@ -119,6 +120,9 @@ function _export_packages(packages) table.insert(config_argv, "-a") table.insert(config_argv, option.get("arch")) end + if option.get("toolchain") then + table.insert(config_argv, "--toolchain=" .. option.get("toolchain")) + end local mode = option.get("mode") if mode then table.insert(config_argv, "-m") |
