diff options
| author | xq114 <[email protected]> | 2023-07-05 15:55:04 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2023-07-05 15:55:04 +0800 |
| commit | 3c7b80ab0a231c934392085baae5d11155f0e0fb (patch) | |
| tree | 8ed38c979cb282443ab725b7ad4997f841ff389c | |
| parent | edb637ddca41f4502cc07e5e3250b274b489ddfe (diff) | |
fix function call
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 360a6df30..8c3492389 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -396,7 +396,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) local lines = errors:split("\n", {plain = true}) local start = 0 for index, line in ipairs(lines) do - if line:find("[eE]rror:", 1, true) or line:find("错误:", 1, true) or line:match("ptxas fatal%s*:") or line:match("error %a+[0-9]+%s*:") then + if line:match("[eE]rror:", 1, true) or line:find("错误:", 1, true) or line:match("ptxas fatal%s*:") or line:match("error %a+[0-9]+%s*:") then start = index break end |
