diff options
| author | ruki <[email protected]> | 2018-06-22 22:35:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-06-22 09:30:59 +0800 |
| commit | 752e703e0041b6fd9770968693b0f625aa246d3e (patch) | |
| tree | 607313a5ce1f82e85e8f19fb120c7e1166128af3 /xmake/core | |
| parent | 4602c6a9216e98e2729ef9657c1a95f0f29225de (diff) | |
improve find_qt
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_file.lua | 2 | ||||
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_path.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_file.lua b/xmake/core/sandbox/modules/import/lib/detect/find_file.lua index 1623eac23..83538d21e 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_file.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_file.lua @@ -91,7 +91,7 @@ function sandbox_lib_detect_find_file.main(name, pathes, opt) -- find file with suffixes if #suffixes > 0 then - for _, suffix in ipairs(table.wrap(opt.suffixes)) do + for _, suffix in ipairs(suffixes) do local filedir = path.join(_path, suffix) local results = sandbox_lib_detect_find_file._find(filedir, name) if results then diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_path.lua b/xmake/core/sandbox/modules/import/lib/detect/find_path.lua index 5228609cd..084983b8a 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_path.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_path.lua @@ -84,7 +84,7 @@ function sandbox_lib_detect_find_path.main(name, pathes, opt) -- find file with suffixes if #suffixes > 0 then - for _, suffix in ipairs(table.wrap(opt.suffixes)) do + for _, suffix in ipairs(suffixes) do local filedir = path.join(_path, suffix) local results = sandbox_lib_detect_find_path._find(filedir, name) if results then |
