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/nvcc.lua | |
| parent | aab3a9a8bf7c07cbf80d62c7bc5bc11c8cbf6fd3 (diff) | |
add ninja theme
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index ec35a9b34..6aab1225d 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -25,6 +25,7 @@ import("core.project.project") import("core.platform.platform") import("core.language.language") import("private.tools.ccache") +import("private.utils.progress") -- init it function init(self) @@ -353,6 +354,9 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) -- print some warnings if warnings and #warnings > 0 and (option.get("verbose") or option.get("warning")) then + if progress.showing_without_scroll() then + print("") + end cprint("${color.warning}%s", table.concat(table.slice(warnings:split('\n', {plain = true}), 1, 8), '\n')) end |
