From b28f654357692175126a600cbd40c97d4eeeb581 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Wed, 19 Jan 2022 19:04:17 +0800 Subject: improve again --- xmake/modules/core/tools/nvcc.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua index 507077e08..0d862af96 100644 --- a/xmake/modules/core/tools/nvcc.lua +++ b/xmake/modules/core/tools/nvcc.lua @@ -349,11 +349,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags) -- use nvcc/stdout as errors first from os.iorunv() if type(errors) == "table" then - local errs = errors.stdout or "" - if #errs:trim() == 0 then - errs = errors.stderr or "" - end - errors = errs + errors = (errors.stdout or "") .. (errors.stderr or "") else errors = tostring(errors) end -- cgit v1.3.1