summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 4106238d7..36645654c 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -196,9 +196,15 @@ end
-- add switches
function _add_switches(makefile)
- makefile:print("ifneq (%$(VERBOSE),1)")
- makefile:print("VV=@")
- makefile:print("endif")
+ if is_subhost("windows") then
+ makefile:print("!if \"%$(VERBOSE)\" != \"1\"")
+ makefile:print("VV=@")
+ makefile:print("!endif")
+ else
+ makefile:print("ifneq (%$(VERBOSE),1)")
+ makefile:print("VV=@")
+ makefile:print("endif")
+ end
makefile:print("")
end