diff options
| author | ruki <[email protected]> | 2020-05-13 23:58:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-13 17:50:10 +0800 |
| commit | 519e890061d919ae5ebd174a5a38f844e57cdab6 (patch) | |
| tree | 14ab5ef20d454bfa975aa61ff3dad62bb91cc788 | |
| parent | d41fa716f2fc3052784630a556886669507f51df (diff) | |
improve wprint
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | xmake/core/base/utils.lua | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b9f14ff4a..db4aa5c2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### New features * [#630](https://github.com/xmake-io/xmake/issues/630): Support *BSD system, e.g. FreeBSD, .. +* Add wprint builtin api to show warnings ### Change @@ -734,6 +735,7 @@ ### 新特性 * [#630](https://github.com/xmake-io/xmake/issues/630): 支持*BSD系统,例如:FreeBSD, .. +* 添加wprint接口去显示警告信息 ### 改进 diff --git a/xmake/core/base/utils.lua b/xmake/core/base/utils.lua index d19be86b7..c516c9e07 100644 --- a/xmake/core/base/utils.lua +++ b/xmake/core/base/utils.lua @@ -261,9 +261,6 @@ function utils.show_warnings() local warnings = utils._WARNINGS if warnings then for idx, msg in ipairs(table.unique(warnings)) do - if idx == 1 then - print("") - end if not option.get("verbose") and idx > 1 then utils.cprint("${bright color.warning}${text.warning}: ${color.warning}add -v for getting more warnings ..") break |
