Bug 14305 – DMD incorrectly interprets -of and -od with -lib

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-18T14:46:44Z
Last change time
2024-12-13T18:41:17Z
Assigned to
No Owner
Creator
Vladimir Panteleev
Blocks
14296
Moved to GitHub: dmd#18959 →

Comments

Comment #0 by dlang-bugzilla — 2015-03-18T14:46:44Z
--- mkdir src touch src/test.d dmd -c -ofsrc/test.out -odsrc src/test.d # OK, src/test.out created dmd -lib -ofsrc/test.out -odsrc src/test.d # Creates src/src/test.out instead of src/test.out ---
Comment #1 by temtaime — 2015-04-01T19:43:04Z
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
Comment #6 by robert.schadek — 2024-12-13T18:41:17Z
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