diff options
| author | ruki <[email protected]> | 2020-10-28 23:07:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-28 23:07:17 +0800 |
| commit | a8e829f018dea4f06a393bd17cd2e5bc9c10a5dc (patch) | |
| tree | c02f5ce7291c94a6eaf75498a820443675551a26 | |
| parent | b888d536f76430c09abe315fa1749f0c1d2d60be (diff) | |
improve xrepo search
| -rw-r--r-- | xmake/modules/private/xrepo/action/search.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/search.lua b/xmake/modules/private/xrepo/action/search.lua index 5b4521afe..e6ca511c4 100644 --- a/xmake/modules/private/xrepo/action/search.lua +++ b/xmake/modules/private/xrepo/action/search.lua @@ -65,6 +65,16 @@ function _search_packages(packages) os.cd(workdir) end + -- do configure first + local config_argv = {"f", "-c"} + if option.get("verbose") then + table.insert(config_argv, "-v") + end + if option.get("diagnosis") then + table.insert(config_argv, "-D") + end + os.vrunv("xmake", config_argv) + -- do search local require_argv = {"require", "--search"} if option.get("verbose") then |
