diff options
| author | ruki <[email protected]> | 2020-05-31 10:31:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-31 10:31:59 +0800 |
| commit | 6d67b96bf3977f9f9376e03195933638e75f92ba (patch) | |
| tree | b77a0db55b27c090a5e4a61eb86f7a9f6bc590e4 /xmake/modules/core/tools/cl.lua | |
| parent | aab3a9a8bf7c07cbf80d62c7bc5bc11c8cbf6fd3 (diff) | |
add ninja theme
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 3a050fd64..d6a71f619 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -24,6 +24,7 @@ import("core.project.project") import("core.language.language") import("private.tools.vstool") import("private.tools.cl.parse_include") +import("private.utils.progress") -- init it function init(self) @@ -400,6 +401,9 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) end if #lines > 0 then local warnings = table.concat(table.slice(lines, 1, ifelse(#lines > 8, 8, #lines)), "\r\n") + if progress.showing_without_scroll() then + print("") + end cprint("${color.warning}%s", warnings) end end |
