From edb637ddca41f4502cc07e5e3250b274b489ddfe Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Wed, 5 Jul 2023 15:49:30 +0800 Subject: fix nvcc error detection --- xmake/modules/core/tools/nvcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1