Poll: -od -lib -of and breaking compatibility with build tools
Seb
seb at wilzba.ch
Mon Aug 12 06:29:51 UTC 2019
On Monday, 12 August 2019 at 05:59:53 UTC, FeepingCreature wrote:
> I ran into this bug a few days ago.
>
> DMD, when specifying -od (output directory), -of (output file)
> and *only* when in -lib mode, treats the output file path as
> relative to the output directory path. Ie. -odfoo -oflibbar.a
> results in foo/libbar.a as opposed to ./libbar.a. This is in
> contradiction to every other mode (-shared, binary output,
> object output) and every other D compiler (ldc, gdc).
>
> [...]
It's a bug and should be fixed.
I would be surprised if it actually breaks a build tool. They
(e.g. dub) just use -of.
More information about the Digitalmars-d
mailing list