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); exit (1);
} }
} }
if (options.frames_files) {
write_frame_macros (va ("%s.frame", file_basename (file))); write_frame_macros (va ("%s.frame", file_basename (file)));
}
if (!err) { if (!err) {
qfo_t *qfo; qfo_t *qfo;
@ -750,9 +752,11 @@ progs_src_compile (void)
} else { } else {
if (compile_file (qc_filename->str)) if (compile_file (qc_filename->str))
return 1; return 1;
if (options.frames_files) {
write_frame_macros (va ("%s.frame", write_frame_macros (va ("%s.frame",
file_basename (qc_filename->str))); file_basename (qc_filename->str)));
} }
}
if (!Script_TokenAvailable (script, 0)) if (!Script_TokenAvailable (script, 0))
break; break;
Script_GetToken (script, 0); Script_GetToken (script, 0);