diff options
| author | xq114 <[email protected]> | 2023-07-05 15:49:30 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2023-07-05 15:49:30 +0800 |
| commit | edb637ddca41f4502cc07e5e3250b274b489ddfe (patch) | |
| tree | 44f8e46623485c967948f5c64dd8206c28d3408d /xmake/modules/core/tools/nvcc.lua | |
| parent | 71e2f7e69838b2c9faedbae8f877c2946bb85e15 (diff) | |
fix nvcc error detection
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
| -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 5d5001712..360a6df30 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("error:", 1, true) or line:find("错误:", 1, true) or line:match("ptxas fatal%s*:") or line:match("error %a+[0-9]+%s*:") then + 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 start = index break end |
