DMD: How to compile executable without producing .obj file?

BoQsc vaidas.boqsc at gmail.com
Sun Nov 5 18:58:48 UTC 2023


When you compile using `dmd` compiler you will often get `.exe` 
and `.obj` file.

I would like to only produce `.exe` file:


```
dmd -release -Ldatatypes.lib example.d
```

I tried dmd option:
```
-o-               do not write object file
```

But it also prevents production of `.exe` file.
Essentially producing nothing as a result.


More information about the Digitalmars-d-learn mailing list