summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/windows/_maker.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform/windows/_maker.lua')
-rw-r--r--xmake/scripts/platform/windows/_maker.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/scripts/platform/windows/_maker.lua b/xmake/scripts/platform/windows/_maker.lua
index 40df24e17..81e8fd5de 100644
--- a/xmake/scripts/platform/windows/_maker.lua
+++ b/xmake/scripts/platform/windows/_maker.lua
@@ -76,12 +76,15 @@ function _maker.done(mkfile, target)
local includes = _maker._enter("include")
local libpathes = _maker._enter("libpath")
+ -- is verbose?
+ local verbose = utils.ifelse(xmake._OPTIONS.verbose, "-v", "")
+
-- make command
local cmd = nil
if mkfile and os.isfile(mkfile) then
- cmd = string.format("nmake /f %s %s 2> nul", mkfile, target or "")
+ cmd = string.format("nmake /f %s %s VERBOSE=%s 2> nul", mkfile, target or "", verbose)
else
- cmd = string.format("nmake %s 2> nul", target or "")
+ cmd = string.format("nmake %s VERBOSE=%s 2> nul", target or "", verbose)
end
-- done