Building static libs with -o-
David Nadlinger via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Fri Apr 3 14:43:44 PDT 2015
On Thursday, 2 April 2015 at 21:57:16 UTC, John Colvin wrote:
> There are inlining opportunities across modules that only exist
> when they are compiled together. Even if you feed all the
> modules to LDC at once, the backend only sees one at once. Or
> at least that's what I understand, perhaps one of the LDC devs
> can correct me if I'm wrong.
This is correct.
Given that the frontend does not really support compiling modules
in different combinations anyway (e.g. in incremental compilation
first all at once, and then only the changed modules one by one),
-singleobj should really be the default.
More information about the digitalmars-d-ldc