summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/xrepo/action/search.lua10
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