summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorxq114 <[email protected]>2023-07-05 15:49:30 +0800
committerxq114 <[email protected]>2023-07-05 15:49:30 +0800
commitedb637ddca41f4502cc07e5e3250b274b489ddfe (patch)
tree44f8e46623485c967948f5c64dd8206c28d3408d /xmake/modules/core/tools/nvcc.lua
parent71e2f7e69838b2c9faedbae8f877c2946bb85e15 (diff)
fix nvcc error detection
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
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