diff options
| author | ruki <[email protected]> | 2024-01-26 22:44:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-26 22:44:05 +0800 |
| commit | b67d2ce203e9535e0f2004ce7f81a690a79ec0ca (patch) | |
| tree | 9026db9a6a7a4ac11cf58f1d03dd9147a1201fcb /xmake/modules/core/tools/yasm.lua | |
| parent | 3b12cd7ac54e33af6891fc7444128bb5c493366f (diff) | |
improve more warnings
Diffstat (limited to 'xmake/modules/core/tools/yasm.lua')
| -rw-r--r-- | xmake/modules/core/tools/yasm.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/yasm.lua b/xmake/modules/core/tools/yasm.lua index 2979f1d49..7f912f1c3 100644 --- a/xmake/modules/core/tools/yasm.lua +++ b/xmake/modules/core/tools/yasm.lua @@ -20,6 +20,7 @@ -- imports import("core.base.option") +import("core.project.policy") import("core.language.language") -- init it @@ -80,7 +81,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) -- ensure the object directory os.mkdir(path.directory(objectfile)) @@ -107,7 +108,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) function (ok, outdata, errdata) -- show warnings? - if ok and errdata and (option.get("diagnosis") or option.get("warning")) then + if ok and errdata and policy.build_warnings(opt) then errdata = errdata:trim() if #errdata > 0 then cprint("${color.warning}%s", errdata) |
