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/sdcc.lua | |
| parent | 3b74bb00d24587b4768ac10c9ef4222f01ae9225 (diff) | |
add global build_warning option
Diffstat (limited to 'xmake/modules/core/tools/sdcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/sdcc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/sdcc.lua b/xmake/modules/core/tools/sdcc.lua index 36f6a9a96..89739c7cf 100644 --- a/xmake/modules/core/tools/sdcc.lua +++ b/xmake/modules/core/tools/sdcc.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.base.global") import("private.utils.progress") -- init it @@ -215,7 +216,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) function (ok, warnings) -- print some warnings - if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then + if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning") or global.get("build_warning")) then if progress.showing_without_scroll() then print("") end |
