www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17058] New: dmd -shared -od=/tmp/d09/ incorrectly creates lib


          Issue ID: 17058
           Summary: dmd -shared -od=/tmp/d09/ incorrectly creates lib in
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 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:

(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=`

Jan 03 2017