1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-15 02:29:32 +00:00

Merge pull request #1991 from spiro-trikaliotis/fix-msys2-test

Remove .exe from file output
This commit is contained in:
Bob Andrews 2023-02-17 18:29:39 +01:00 committed by GitHub
commit c097401f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,17 @@ void InitCmdLine (int* aArgCount, char*** aArgVec, const char* aProgName)
/* Use the default */
ProgName = aProgName;
}
else {
/* remove .exe extension, if there is any
**
** Note: This creates a new string that is
** never free()d.
** As this is exactly only string, and it
** lives for the whole lifetime of the tool,
** this is not an issue.
*/
ProgName = MakeFilename (ProgName, "");
}
}
/* Make a CmdLine struct */