diff options
| author | ruki <[email protected]> | 2023-03-11 00:48:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-11 00:48:03 +0800 |
| commit | 9e058f5691d48fd449cb7f8a9caa32155247bba8 (patch) | |
| tree | 65e18f0cc50437876b561989254e4f5d3e685965 /xmake/plugins/project/make/makefile.lua | |
| parent | 9d40e1263d4d3e8899f29b4a5728a3c30a931114 (diff) | |
fix makefile for nmake
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 12 |
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 |
