diff options
| author | ruki <[email protected]> | 2023-08-12 23:22:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-12 23:22:59 +0800 |
| commit | c7db3018e4e07e70628af2528a3a9210ca924d9b (patch) | |
| tree | ef3e2874cdd758572faf53c1b7b88f68c32faf67 /xmake/modules/core/tools/c51.lua | |
| parent | bde76aa37a2b3e7f41b41b81c08739d19cc836df (diff) | |
improve c51 lst #4067
Diffstat (limited to 'xmake/modules/core/tools/c51.lua')
| -rw-r--r-- | xmake/modules/core/tools/c51.lua | 4 |
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 |
