2022-10-19 20:16:13 +00:00
|
|
|
#include "parser.h"
|
|
|
|
#include "cmdline.h"
|
2022-10-14 22:15:32 +00:00
|
|
|
|
2022-10-19 20:16:13 +00:00
|
|
|
int Opt_DummyLinkerRoutine(const char *opt, void *, const char *, int) {
|
2022-10-14 22:15:32 +00:00
|
|
|
CLPFatalError("Calling linker option '%s'\n", opt);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Opt_DummyLinkerSettingRoutine(const char *var, const char *val) {
|
|
|
|
CLPFatalError("Calling linker settings option '%s'='%s'\n", var, val ? val : "");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-01-11 22:29:53 +00:00
|
|
|
void FinishCompilerTool(void) {
|
2022-10-14 22:15:32 +00:00
|
|
|
SInt32 numfiles;
|
|
|
|
|
|
|
|
if (parseopts.lastoutputname[0]) {
|
|
|
|
numfiles = GetFileCount();
|
|
|
|
|
|
|
|
if (pCmdLine.stages == CmdLineStageMask_Dp) {
|
|
|
|
strcpy(pCmdLineCompiler.outMakefile, parseopts.lastoutputname);
|
|
|
|
} else if (outputOrdering == OutputOrdering2) {
|
|
|
|
if (parseopts.possibleFiles > 0 || parseopts.userSpecifiedFiles > 0)
|
2023-01-15 21:50:41 +00:00
|
|
|
CLPReportError(CLPStr41, parseopts.lastoutputname);
|
2022-10-14 22:15:32 +00:00
|
|
|
else
|
2023-01-15 21:50:41 +00:00
|
|
|
CLPReportError(CLPStr42, parseopts.lastoutputname);
|
2022-10-14 22:15:32 +00:00
|
|
|
} else {
|
|
|
|
SetFileOutputName(numfiles - 1, lastStage, parseopts.lastoutputname);
|
|
|
|
}
|
|
|
|
|
|
|
|
parseopts.lastoutputname[0] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (setOutputDirectory)
|
|
|
|
pCmdLineCompiler.relPathInOutputDir = 0;
|
|
|
|
}
|