summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/windres.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/windres.lua')
-rw-r--r--xmake/modules/core/tools/windres.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/windres.lua b/xmake/modules/core/tools/windres.lua
index 8d36c66a2..85aad2a20 100644
--- a/xmake/modules/core/tools/windres.lua
+++ b/xmake/modules/core/tools/windres.lua
@@ -20,6 +20,7 @@
-- imports
import("core.base.option")
+import("core.base.global")
import("core.project.project")
-- init it
@@ -72,7 +73,7 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
function (ok, warnings)
-- print some warnings
- if warnings and #warnings > 0 and option.get("verbose") then
+ if warnings and #warnings > 0 and (option.get("diagnosis") or option.get("warning") or global.get("build_warning")) then
cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n'))
end
end