Tip: Use -i to modify druntime/phobos without rebuilding them
Jonathan Marler
johnnymarler at gmail.com
Mon Feb 10 07:35:14 UTC 2020
On Monday, 10 February 2020 at 07:17:11 UTC, rikki cattermole
wrote:
> On 10/02/2020 8:03 PM, Mathias Lang wrote:
>> On Monday, 10 February 2020 at 06:19:44 UTC, Jonathan Marler
>> wrote:
>>> [...]
>>
>> Doesn't that only work for specific cases involving templates
>> though ?
>> If you don't recompile Phobos, anything you'll link will still
>> link the old binaries. So it's akin to compiling C(++) code
>> but having the headers not match the `.c(pp)`.
>
> -i != -I
In C++ it would be akin to re-compiling all the source files that
match your "-i" pattern, not just changing the header files. The
case you're thinking of is the behavior you get when you don't
specify -i.
More information about the Digitalmars-d
mailing list