summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/cmake.lua4
-rw-r--r--xmake/modules/package/tools/ninja.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index c9cfc8c2a..27268613d 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -1008,7 +1008,7 @@ function _build_for_make(package, configs, opt)
end
local jobs = _get_parallel_njobs(opt)
table.insert(argv, "-j" .. jobs)
- if option.get("verbose") then
+ if option.get("diagnosis") then
table.insert(argv, "VERBOSE=1")
end
if is_host("bsd") then
@@ -1093,7 +1093,7 @@ end
function _install_for_make(package, configs, opt)
local jobs = _get_parallel_njobs(opt)
local argv = {"-j" .. jobs}
- if option.get("verbose") then
+ if option.get("diagnosis") then
table.insert(argv, "VERBOSE=1")
end
if is_host("bsd") then
diff --git a/xmake/modules/package/tools/ninja.lua b/xmake/modules/package/tools/ninja.lua
index f900a8d1f..df5ba21da 100644
--- a/xmake/modules/package/tools/ninja.lua
+++ b/xmake/modules/package/tools/ninja.lua
@@ -34,7 +34,7 @@ function _default_argv(package, configs, opt)
end
table.insert(argv, "-C")
table.insert(argv, buildir)
- if option.get("verbose") then
+ if option.get("diagnosis") then
table.insert(argv, "-v")
end
table.insert(argv, "-j")