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/cl.lua | |
| parent | 3b74bb00d24587b4768ac10c9ef4222f01ae9225 (diff) | |
add global build_warning option
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 2f08ff189..e31a9909e 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.base.glboal") import("core.project.project") import("core.language.language") import("private.tools.vstool") @@ -426,7 +427,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags, opt) function (ok, outdata, errdata) -- show warnings? - if ok and (option.get("diagnosis") or option.get("warning")) then + if ok and (option.get("diagnosis") or option.get("warning") or global.get("build_warning")) then local output = outdata or "" if #output:trim() == 0 then output = errdata or "" |
