On Thursday, 25 May 2023 at 08:37:40 UTC, John Xu wrote:
For dmd, I can use a no_console.def file, which has:

    EXETYPE NT
    SUBSYSTEM WINDOWS


Then `dmd my.d no_console.def` to hide console.

But how do I realize it with dub.sdl ? Adding no_console.def to
"sourceFiles", doesn't help.

you can do that:

```json
"lflags-windows": [
    "/SUBSYSTEM:windows",
],
```

dub is too dumb, i think "sourceFiles" only accept .d

  • How hide console... John Xu via Digitalmars-d-learn
    • Re: How hid... a11e99z via Digitalmars-d-learn
    • Re: How hid... ryuukk_ via Digitalmars-d-learn
      • Re: How... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to