summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-12 23:22:59 +0800
committerruki <[email protected]>2023-08-12 23:22:59 +0800
commitc7db3018e4e07e70628af2528a3a9210ca924d9b (patch)
treeef3e2874cdd758572faf53c1b7b88f68c32faf67
parentbde76aa37a2b3e7f41b41b81c08739d19cc836df (diff)
improve c51 lst #4067
-rw-r--r--xmake/modules/core/tools/c51.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/c51.lua b/xmake/modules/core/tools/c51.lua
index d5fb68a92..105c0dbc3 100644
--- a/xmake/modules/core/tools/c51.lua
+++ b/xmake/modules/core/tools/c51.lua
@@ -64,7 +64,9 @@ end
-- make the compile arguments list
function compargv(self, sourcefile, objectfile, flags)
- return self:program(), table.join(sourcefile, "OBJECT(" .. objectfile .. ")", "PRINT(" .. (objectfile:gsub("%.c%.obj", ".lst")) .. ")", flags)
+ local lstfile = objectfile:gsub("%.c%.obj", ".lst")
+ lstfile = lstfile:gsub("%.c%.o$", ".lst")
+ return self:program(), table.join(sourcefile, "OBJECT(" .. objectfile .. ")", "PRINT(" .. lstfile .. ")", flags)
end
-- compile the source file