diff options
| author | ruki <[email protected]> | 2023-07-05 16:58:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-05 16:58:23 +0800 |
| commit | c801c64e8d272c61e5ee9967a87490ec9f51cfae (patch) | |
| tree | 8ed38c979cb282443ab725b7ad4997f841ff389c | |
| parent | 71e2f7e69838b2c9faedbae8f877c2946bb85e15 (diff) | |
| parent | 3c7b80ab0a231c934392085baae5d11155f0e0fb (diff) | |
Merge pull request #3928 from xq114/dev
fix nvcc error detection
| -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..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("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: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 |
