[Issue 21361] New: dmd's -o- switch suppresses shared library as well
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Nov  3 19:19:23 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21361
          Issue ID: 21361
           Summary: dmd's -o- switch suppresses shared library as well
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: acehreli at yahoo.com
1) Have a trivial D file named deneme.d:
// deneme.d
void foo() {
}
2) Compile a shared library with the -o- switch:
dmd -o- -shared -of=deneme.so deneme.d
Desired behavior: The .so file should exist but the .o file should be missing
per my understanding of the documentation: https://dlang.org/dmd-linux.html
Observed behavior: No file exists.
Note: Perhaps only the documentation needs to be made more clear from the
current "Useful in conjuction with -D or -H flags."
Still, lack of the .so file should be considered a bug, and so here it is! :)
--
    
    
More information about the Digitalmars-d-bugs
mailing list