summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/sdcc.lua
diff options
context:
space:
mode:
authorÂngelo Andrade Cirino <[email protected]>2021-07-15 23:23:48 -0300
committerÂngelo Andrade Cirino <[email protected]>2021-07-15 23:23:48 -0300
commit81ad292ea67f82d88d785a37d23b1f1603996da1 (patch)
tree817b50173948547f7e4b491da271918c67b8a5ff /xmake/modules/core/tools/sdcc.lua
parent942c32f448d9b8a850438aa2af1de2415b7ae872 (diff)
parent8c1141aba414c07554179cb28687124514f6e770 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'xmake/modules/core/tools/sdcc.lua')
-rw-r--r--xmake/modules/core/tools/sdcc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/sdcc.lua b/xmake/modules/core/tools/sdcc.lua
index 0f307d6ff..00e081384 100644
--- a/xmake/modules/core/tools/sdcc.lua
+++ b/xmake/modules/core/tools/sdcc.lua
@@ -133,7 +133,7 @@ end
-- make the includedir flag
function nf_includedir(self, dir)
- return "-I" .. os.args(dir)
+ return {"-I" .. dir}
end
-- make the sysincludedir flag
@@ -153,7 +153,7 @@ end
-- make the linkdir flag
function nf_linkdir(self, dir)
- return "-L" .. os.args(dir)
+ return {"-L" .. dir}
end
-- make the link arguments list
@@ -209,7 +209,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