Thread overview
[Issue 14305] DMD incorrectly interprets -of and -od with -lib
Apr 01, 2015
Temtaime
Apr 01, 2015
Temtaime
Apr 01, 2015
Vladimir Panteleev
Jun 18, 2015
Nick Sabalausky
Jun 19, 2015
Nick Sabalausky
Dec 17, 2022
Iain Buclaw
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14305

Temtaime <temtaime@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |temtaime@gmail.com

--- Comment #1 from Temtaime <temtaime@gmail.com> ---
And what if...

dmd -lib -ofaa/test.out -odbb src/test.d

It should create bb/aa/test.out or aa/test.out ?

I think current behavior is correct.

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14305

--- Comment #2 from Temtaime <temtaime@gmail.com> ---
Seems that without -lib behavior is incorrect then.

--
April 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14305

--- Comment #3 from Vladimir Panteleev <thecybershadow@gmail.com> ---
(In reply to Temtaime from comment #1)
> I think current behavior is correct.

-od is not just for the output file, but also for intermediate files (.obj). -of should override -od for the final output file. I consider that the current behavior without -lib is correct. Regardless of that, changing the behavior without -lib will break rdmd and possibly other tools.

--
June 18, 2015
https://issues.dlang.org/show_bug.cgi?id=14305

Nick Sabalausky <cbkbbejeap@mailinator.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cbkbbejeap@mailinator.com

--- Comment #4 from Nick Sabalausky <cbkbbejeap@mailinator.com> ---
It should be noted that this bug breaks using rdmd to build libs.

--
June 19, 2015
https://issues.dlang.org/show_bug.cgi?id=14305

--- Comment #5 from Nick Sabalausky <cbkbbejeap@mailinator.com> ---
https://github.com/D-Programming-Language/dmd/pull/4753

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14305

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=14305

--- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18959

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--