summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-12 00:39:26 +0800
committerruki <[email protected]>2019-06-11 21:56:41 +0800
commit5cc9f406fb8d7815bb0ebed81b937876291ef81a (patch)
treecc2387078bf8fe5004e488955b9e9e0f526210c3 /xmake/modules/core/tools/cl.lua
parent3922367dec058b680fabc41f32e9b507822abe2b (diff)
parent52f3bbe24e365b28f4bcd1e277d178a2561a1e8b (diff)
support cuda device-link
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