diff options
| author | ruki <[email protected]> | 2024-01-26 22:43:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-26 22:43:11 +0800 |
| commit | 3b12cd7ac54e33af6891fc7444128bb5c493366f (patch) | |
| tree | b7fc835f51ba9d346f82b0148f3ca2c1c309a44c /xmake/modules/core/tools/windres.lua | |
| parent | 37ea03445cb35ed3f3966f3433211451175eead1 (diff) | |
improve check warnings
Diffstat (limited to 'xmake/modules/core/tools/windres.lua')
| -rw-r--r-- | xmake/modules/core/tools/windres.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/windres.lua b/xmake/modules/core/tools/windres.lua index 74f8da7c0..4eedd484c 100644 --- a/xmake/modules/core/tools/windres.lua +++ b/xmake/modules/core/tools/windres.lua @@ -55,7 +55,7 @@ function compargv(self, sourcefile, objectfile, flags) end -- compile the source file -function compile(self, sourcefile, objectfile, dependinfo, flags) +function compile(self, sourcefile, objectfile, dependinfo, flags, opt) os.mkdir(path.directory(objectfile)) try { @@ -73,7 +73,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) finally { function (ok, warnings) - if warnings and #warnings > 0 and policy.build_warnings() then + if warnings and #warnings > 0 and policy.build_warnings(opt) then cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n'), 1, 8), '\n')) end end |
