mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Set the output file name as early as possible.
This commit is contained in:
parent
417d1b4442
commit
7bfaf107ce
1 changed files with 3 additions and 2 deletions
|
@ -378,6 +378,9 @@ finish_link (void)
|
|||
qfo_t *qfo;
|
||||
int flags;
|
||||
|
||||
if (!options.output_file)
|
||||
options.output_file = "progs.dat";
|
||||
|
||||
flags = (QFOD_GLOBAL | QFOD_CONSTANT | QFOD_INITIALIZED | QFOD_NOSAVE);
|
||||
if (options.code.progsversion != PROG_ID_VERSION) {
|
||||
linker_add_def (".param_size", &type_integer, flags,
|
||||
|
@ -395,8 +398,6 @@ finish_link (void)
|
|||
qfo = linker_finish ();
|
||||
if (!qfo)
|
||||
return 1;
|
||||
if (!options.output_file)
|
||||
options.output_file = "progs.dat";
|
||||
if (options.partial_link) {
|
||||
qfo_write (qfo, options.output_file);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue