On Sat, 2022-01-22 at 09:41 +0100, Jakub Jelinek wrote: > On Sat, Jan 22, 2022 at 04:33:08PM +0800, Xi Ruoyao via Gcc-patches > wrote: > > On Sat, 2022-01-22 at 15:55 +0800, Chenghua Xu wrote: > > > +$(srcdir)/config/loongarch/loongarch.opt: \ > > > + $(srcdir)/config/loongarch/genopts/genstr.sh \ > > > + $(srcdir)/config/loongarch/genopts/loongarch.opt.in > > > + $(SHELL) $< opt > $@ > > > + > > > +$(LA_STR_H): \ > > > + $(srcdir)/config/loongarch/genopts/genstr.sh \ > > > + $(srcdir)/config/loongarch/genopts/loongarch-strings > > > + $(SHELL) $< header > $@ > > > > I'm not sure about these two rules: is it allowed to modify files in > > $(srcdir) running "make"? > > No (except in --enable-maintainer-mode), but the above certainly > looks wrong, both should be in the objdir instead.
Does the building system support a .opt file in $(objdir)? And how to handle the translations (.po) for loongarch.opt if it's in $(objdir)? -- Xi Ruoyao <xry...@mengyan1223.wang> School of Aerospace Science and Technology, Xidian University