diff options
| author | ruki <[email protected]> | 2024-08-24 07:22:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-24 07:22:42 +0800 |
| commit | c80898e12f88abe7df463bc64e0fb6bf081b8cdf (patch) | |
| tree | 778fc24c5ff2207419f0f06c60fff46b67739d03 /xmake/core/base/utils.lua | |
| parent | 3ba77c15ccf34187b6678f277f2dd418433493c8 (diff) | |
| parent | d19c47eac0a44b0bfbbf2e4ce7cf98713720a245 (diff) | |
Merge pull request #5466 from xmake-io/toolchain
Improve to check and load toolchain
Diffstat (limited to 'xmake/core/base/utils.lua')
| -rw-r--r-- | xmake/core/base/utils.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index e8b6401f6..5125d224e 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -142,49 +142,25 @@ end -- print format string with newline function utils.print(format, ...) - - -- check assert(format) - - -- init message local message = string.tryformat(format, ...) - - -- trace utils._print(message) - - -- write to the log file log:printv(message) end -- print format string without newline function utils.printf(format, ...) - - -- check assert(format) - - -- init message local message = string.tryformat(format, ...) - - -- trace utils._iowrite(message) - - -- write to the log file log:write(message) end -- print format string and colors with newline function utils.cprint(format, ...) - - -- check assert(format) - - -- init message local message = string.tryformat(format, ...) - - -- trace utils._print(colors.translate(message)) - - -- write to the log file if log:file() then log:printv(colors.ignore(message)) end @@ -192,17 +168,9 @@ end -- print format string and colors without newline function utils.cprintf(format, ...) - - -- check assert(format) - - -- init message local message = string.tryformat(format, ...) - - -- trace utils._iowrite(colors.translate(message)) - - -- write to the log file if log:file() then log:write(colors.ignore(message)) end @@ -237,8 +205,6 @@ end -- add warning message function utils.warning(format, ...) - - -- check assert(format) -- format message |
