summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-20 13:19:21 +0800
committerruki <[email protected]>2017-07-20 13:19:21 +0800
commit37e1e4b70b3f0f29e695603f1ba5ce1fd96f7417 (patch)
tree21dd25673ebb105c8b4aa4505d062b7cdc4de4a1 /xmake/modules/core/tools/cl.lua
parent1df9b001b1607882d38211ddb2e6d72e3ac0c542 (diff)
update tbox for windows
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 81146817e..4dde0fc6a 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -233,7 +233,7 @@ function _compile1(self, sourcefile, objectfile, incdepfile, flags)
local including_file = errors:match("\n(.-: .-:)%s*.-\r*\n")
-- filter includes notes
- if errors and including_file then
+ if errors and #errors:split("\n") > 10 and including_file then
errors = errors:gsub((including_file or "") .. ".-\r*\n", "")
end
os.raise(errors)