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.
Comment #2 by temtaime — 2015-04-01T19:43:52Z
Seems that without -lib behavior is incorrect then.
Comment #3 by dlang-bugzilla — 2015-04-01T19:46:50Z
(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.
Comment #4 by bus_dbugzilla — 2015-06-18T21:45:42Z
It should be noted that this bug breaks using rdmd to build libs.
Comment #5 by bus_dbugzilla — 2015-06-19T03:53:29Z