Bug 17058 – dmd -shared -od=/tmp/d09/ incorrectly creates lib in cwd

Status
NEW
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2017-01-03T23:54:55Z
Last change time
2024-12-13T18:51:15Z
Assigned to
No Owner
Creator
Timothee Cour
Moved to GitHub: dmd#19224 →

Comments

Comment #0 by timothee.cour2 — 2017-01-03T23:54:55Z
OSX (and maybe other OS) dmd -shared -od=/tmp/d09/ test.d creates ./test.dylib instead of /tmp/d09/test.dylib; and also /tmp/d09/test.o same with s/dmd/ldmd2/ with s/-shared/-lib/, it correctly creates: /tmp/d09/test.a (and no .o) This is clearly inconsistent. One option would be to make: dmd -shared -od=/tmp/d09/ test.d create all produced stuff in /tmp/d09/ If that's unacceptable, make `dmd -shared -od=/tmp/d09/ test.d` an error, saying: please provide `-of=`
Comment #1 by robert.schadek — 2024-12-13T18:51:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19224 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB