diff options
| author | ruki <[email protected]> | 2017-09-23 23:35:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-23 23:35:45 +0800 |
| commit | f31f003cc6de4513382cdd8f3a165f072952652c (patch) | |
| tree | 089fc931a386994f0c436a3c0fcb83e5383046dc | |
| parent | bafd589189425e569cefb9192b7b04b4faec5acf (diff) | |
improve including note for msvc
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index c636082f8..f727f2f7a 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -259,18 +259,29 @@ end -- contain: "Note: including file: "? -- --- we cannot get better solution to distinguish between `includes` and `error infos` +-- @note we cannot get better solution to distinguish between `includes` and `error infos` -- function _include_note(self, line) -- init notes + -- + -- TODO zh-tw, zh-hk, jp, ... + -- _g.notes = _g.notes or { "Note: including file: " + , "\215\162\210\226\58\32\176\252\186\172\206\196\188\254\58\32" -- zh-cn } -- contain notes? for idx, note in ipairs(_g.notes) do + + -- dump line bytes + --[[ + print(line) + line:gsub(".", function (ch) print(string.byte(ch)) end) + --]] + if line:startswith(note) then -- optimization: move this note to head if idx ~= 1 then |
