From 2c44d7a52e0ade678e686c755926eb8f91bae691 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 Sep 2024 23:46:23 +0800 Subject: [PATCH] add --toolchain_host --- scripts/test.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test.lua b/scripts/test.lua index b355700cf..95d265cb8 100644 --- a/scripts/test.lua +++ b/scripts/test.lua @@ -38,6 +38,7 @@ local options = , {nil, "appledev", "kv", nil, "The Apple Device Type" } , {nil, "mingw", "kv", nil, "Set the MingW directory." } , {nil, "toolchain", "kv", nil, "Set the toolchain name." } +, {nil, "toolchain_host", "kv", nil, "Set the host toolchain name." } , {nil, "packages", "vs", nil, "The package list." } } @@ -114,6 +115,9 @@ function _require_packages(argv, packages) if argv.toolchain then table.insert(config_argv, "--toolchain=" .. argv.toolchain) end + if argv.toolchain_host then + table.insert(config_argv, "--toolchain_host=" .. argv.toolchain_host) + end if argv.cflags then table.insert(config_argv, "--cflags=" .. argv.cflags) end