diff options
| author | xq114 <[email protected]> | 2022-01-19 19:04:17 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-01-19 19:04:17 +0800 |
| commit | b28f654357692175126a600cbd40c97d4eeeb581 (patch) | |
| tree | 9cad37de6d1c9fe41495b07ac7fcd4500248d362 | |
| parent | 7f970bfabcc2413cda468a8dbc435607c9a82e37 (diff) | |
improve again
| -rw-r--r-- | xmake/modules/core/tools/nvcc.lua | 6 |
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 |
