diff options
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 "" |
