diff options
| author | ruki <[email protected]> | 2021-08-27 00:33:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-27 00:33:03 +0800 |
| commit | f31f70694d9cb10d002a7af0806d2a0809c64866 (patch) | |
| tree | 42cc80c47007ed62994c059ee447ba591fdfa786 /xmake/modules | |
| parent | 3c0c998aa5418463e838ae7b53f12140b472aa11 (diff) | |
improve trybuild
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/trybuild/autotools.lua | 3 | ||||
| -rw-r--r-- | 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 |
