summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 3859358d3..4f3545988 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -313,10 +313,10 @@ function _include_deps(self, outdata)
-- translate it
local results = {}
local uniques = {}
- for _, line in ipairs(outdata:split("\r\n", {plain = true})) do
+ for _, line in ipairs(outdata:split("\n", {plain = true})) do
-- get includefile
- local includefile = _include_note(self, line)
+ local includefile = _include_note(self, line:trim())
if includefile then
-- get the relative