summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/nvcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-05-26 23:30:44 +0800
committerruki <[email protected]>2021-05-26 23:30:44 +0800
commit9177f156bb1b70fb7adea5c10b6db22012048769 (patch)
treeeef35bde44f533987e18666886f8b47a7bca9684 /xmake/modules/core/tools/nvcc.lua
parent7d1291b310e771c903922ebf4502372c7339c72e (diff)
remove more ifelse again
Diffstat (limited to 'xmake/modules/core/tools/nvcc.lua')
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index f4df5c866..784b606c5 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -349,7 +349,7 @@ function compile(self, sourcefile, objectfile, dependinfo, flags)
-- get 16 lines of errors
if start > 0 or not option.get("verbose") then
if start == 0 then start = 1 end
- errors = table.concat(table.slice(lines, start, start + ifelse(#lines - start > 16, 16, #lines - start)), "\n")
+ errors = table.concat(table.slice(lines, start, start + ((#lines - start > 16) and 16 or (#lines - start))), "\n")
end
-- raise compiling errors