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