mirror of https://git.wuffs.org/MWCC
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
|
#include "mwcc_decomp.h"
|
||
|
|
||
|
int Opt_DummyLinkerRoutine(const char *opt) {
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
void FinishCompilerTool() {
|
||
|
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)
|
||
|
CLPReportError(41, parseopts.lastoutputname);
|
||
|
else
|
||
|
CLPReportError(42, parseopts.lastoutputname);
|
||
|
} else {
|
||
|
SetFileOutputName(numfiles - 1, lastStage, parseopts.lastoutputname);
|
||
|
}
|
||
|
|
||
|
parseopts.lastoutputname[0] = 0;
|
||
|
}
|
||
|
|
||
|
if (setOutputDirectory)
|
||
|
pCmdLineCompiler.relPathInOutputDir = 0;
|
||
|
}
|