[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v7 05/51] x86/mm: avoid building multiple .o from a single .c file
On Wed, Sep 08, 2021 at 02:01:43PM +0200, Jan Beulich wrote: > On 08.09.2021 13:14, Anthony PERARD wrote: > > What kind of issue is there with those tiny source files? > > To me they're ugly and their presence is at least mildly confusing. > And apparently I'm not the only one thinking that way, or else such > tiny stubs would have been put there right when introducing these > multiply built sources. Well, at the time when this was introduced, tools/symbols didn't exist, so avoiding the stubs might have been ok by then, but it meant to duplicated %.o:%.c rules in the Makefile... Now, we have tools/symbols, a hack put into the source file to add a ".file instruction", a heuristic in tools/symbols to pick up the ".file" we want, and a workaround to change in behavior of binutils. This is a lot of complexity to avoid introducing those extra source files... complexity that were needed to by added _after_ the initial introduction of multiply built sources, due to changes in the build system. My patches have attempted to remove all the complexity, and having ugly small source files is the price to pay. And you want to add back some complexity in the build system just to avoid those tiny files? I mean hypervisor and build system are complex software to write, do we really need to add complexity at every opportunity? -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |