Bug 21361 – dmd's -o- switch suppresses shared library as well

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-11-03T19:19:23Z
Last change time
2024-12-13T19:12:29Z
Assigned to
No Owner
Creator
Ali Cehreli
Moved to GitHub: dmd#17995 →

Comments

Comment #0 by acehreli — 2020-11-03T19:19:23Z
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! :)
Comment #1 by robert.schadek — 2024-12-13T19:12:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17995 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB