diff options
| author | ruki <[email protected]> | 2020-10-28 22:42:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-28 22:42:47 +0800 |
| commit | 2aa699bb2c0e7e031ea7cfe98b0e60ff9eae073b (patch) | |
| tree | bc81d5bea9d8a4632a567a6825b7b8c604768d25 /xmake/modules/core/tools/llvm_rc.lua | |
| parent | 3b74bb00d24587b4768ac10c9ef4222f01ae9225 (diff) | |
add global build_warning option
Diffstat (limited to 'xmake/modules/core/tools/llvm_rc.lua')
| -rw-r--r-- | xmake/modules/core/tools/llvm_rc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/llvm_rc.lua b/xmake/modules/core/tools/llvm_rc.lua index 4b291aa25..d8733037d 100644 --- a/xmake/modules/core/tools/llvm_rc.lua +++ b/xmake/modules/core/tools/llvm_rc.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 |
