[Issue 17058] New: dmd -shared -od=/tmp/d09/ incorrectly creates lib in cwd
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 3 15:54:55 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17058
Issue ID: 17058
Summary: dmd -shared -od=/tmp/d09/ incorrectly creates lib in
cwd
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
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=`
--
More information about the Digitalmars-d-bugs
mailing list