fixes *.s -> *.o -> exe path

This commit is contained in:
Gorilla Sapiens
2025-05-29 15:05:03 +00:00
parent 842ec4b481
commit 779c393e65

View File

@@ -552,7 +552,12 @@ static void AssembleFile (const char* File, const char* TmpFile, unsigned ArgCou
** to the file list of the linker. The name of the output
** file is that of the input file with ".s" replaced by ".o".
*/
ObjName = MakeFilename (TmpFile ? TmpFile : File, ".o");
if (TmpFile) {
ObjName = MakeFilename (TmpFile, ".o");
}
else {
ObjName = MakeTmpFilename (".o");
}
CmdSetOutput (&CA65, ObjName);
CmdAddFile (&LD65, ObjName);
/* This is just a temporary file, schedule it for removal */