Merge pull request #1991 from spiro-trikaliotis/fix-msys2-test
Remove .exe from file output
This commit is contained in:
@@ -181,6 +181,17 @@ void InitCmdLine (int* aArgCount, char*** aArgVec, const char* aProgName)
|
|||||||
/* Use the default */
|
/* Use the default */
|
||||||
ProgName = aProgName;
|
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 */
|
/* Make a CmdLine struct */
|
||||||
|
|||||||
Reference in New Issue
Block a user