Fix writing of frames files when not requested

I forgot to check for the option for separate compilation.
This commit is contained in:
Bill Currie 2020-02-24 00:07:48 +09:00
parent 27ae5ccfce
commit 11365024d2

View file

@ -391,7 +391,9 @@ compile_to_obj (const char *file, const char *obj, lang_t lang)
exit (1);
}
}
if (options.frames_files) {
write_frame_macros (va ("%s.frame", file_basename (file)));
}
if (!err) {
qfo_t *qfo;
@ -750,9 +752,11 @@ progs_src_compile (void)
} else {
if (compile_file (qc_filename->str))
return 1;
if (options.frames_files) {
write_frame_macros (va ("%s.frame",
file_basename (qc_filename->str)));
}
}
if (!Script_TokenAvailable (script, 0))
break;
Script_GetToken (script, 0);