summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/nvcc.lua6
1 files changed, 1 insertions, 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