add -allinst compiler switch

Jacob Carlborg doob at me.com
Fri Oct 18 07:44:47 PDT 2013


On 2013-10-18 13:47, Iain Buclaw wrote:

> GDC has -femit-templates which emits all templates as private, then
> the linker then removes unreferenced templates.  This however is
> different from the behavior in 2.063, in that it generates code for
> *no really, all* instantiated templates.  This is because of front-end
> template bugs when doing separate compilation (especially in
> large/complex projects - what you call 'build system irregularities').
>   Not sure of what you mean when you say this is the behaviour in
> 2.063, as if 2.063 *did* emit code for all instantiated templates, I'd
> have no need to put in -femit-templates (which emits more code).

Perhaps it now emits templates to less object files :)

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list