summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorxq114 <[email protected]>2022-01-19 19:04:17 +0800
committerxq114 <[email protected]>2022-01-19 19:04:17 +0800
commitb28f654357692175126a600cbd40c97d4eeeb581 (patch)
tree9cad37de6d1c9fe41495b07ac7fcd4500248d362 /xmake/modules
parent7f970bfabcc2413cda468a8dbc435607c9a82e37 (diff)
improve again
Diffstat (limited to 'xmake/modules')
-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