diff options
| author | ruki <[email protected]> | 2021-10-10 00:02:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-10-10 00:02:03 +0800 |
| commit | 37efd34d9f539e1b98404ad1134aa83b9baee0e4 (patch) | |
| tree | 44b5cb8c045d09e5680e3a0b243b64365188de90 /xmake/modules/detect/tools/rustc/has_flags.lua | |
| parent | ff96f6c08fcf72b44226626e1d04be60e92ac37c (diff) | |
fix more unpack
Diffstat (limited to 'xmake/modules/detect/tools/rustc/has_flags.lua')
| -rw-r--r-- | xmake/modules/detect/tools/rustc/has_flags.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/rustc/has_flags.lua b/xmake/modules/detect/tools/rustc/has_flags.lua index e7c55a180..904a3c85a 100644 --- a/xmake/modules/detect/tools/rustc/has_flags.lua +++ b/xmake/modules/detect/tools/rustc/has_flags.lua @@ -26,7 +26,7 @@ function _try_running(...) local argv = {...} local errors = nil - return try { function () os.runv(unpack(argv)); return true end, catch { function (errs) errors = (errs or ""):trim() end }}, errors + return try { function () os.runv(table.unpack(argv)); return true end, catch { function (errs) errors = (errs or ""):trim() end }}, errors end -- attempt to check it from the argument list |
