From f31f70694d9cb10d002a7af0806d2a0809c64866 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 27 Aug 2021 00:33:03 +0800 Subject: improve trybuild --- xmake/modules/private/action/trybuild/autotools.lua | 3 +-- xmake/modules/private/action/trybuild/meson.lua | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/xmake/modules/private/action/trybuild/autotools.lua b/xmake/modules/private/action/trybuild/autotools.lua index 14434f1c5..1d4090522 100644 --- a/xmake/modules/private/action/trybuild/autotools.lua +++ b/xmake/modules/private/action/trybuild/autotools.lua @@ -19,7 +19,6 @@ -- -- imports -import("core.base.cli") import("core.base.option") import("core.project.config") import("core.platform.platform") @@ -142,7 +141,7 @@ function _get_configs(artifacts_dir) -- add extra user configs local tryconfigs = config.get("tryconfigs") if tryconfigs then - for _, opt in ipairs(cli.parse(tryconfigs)) do + for _, opt in ipairs(os.argv(tryconfigs)) do table.insert(configs, tostring(opt)) end end diff --git a/xmake/modules/private/action/trybuild/meson.lua b/xmake/modules/private/action/trybuild/meson.lua index 312e24d22..f2baaff21 100644 --- a/xmake/modules/private/action/trybuild/meson.lua +++ b/xmake/modules/private/action/trybuild/meson.lua @@ -19,7 +19,6 @@ -- -- imports -import("core.base.cli") import("core.base.option") import("core.project.config") import("lib.detect.find_file") @@ -47,7 +46,7 @@ function _get_configs(artifacts_dir, buildir) -- add extra user configs local tryconfigs = config.get("tryconfigs") if tryconfigs then - for _, opt in ipairs(cli.parse(tryconfigs)) do + for _, opt in ipairs(os.argv(tryconfigs)) do table.insert(configs, tostring(opt)) end end -- cgit v1.3.1