On Tue Oct 21 11:49:26 2025 +0000, Rémi Bernon wrote:
Then what if command-line is like: `--subsystem=native:4.0 -mwindows`? Shouldn't `-mwindows` take over any previously set subsystem (which it does already) *and* its version?
Right, I forgot there’s a compiler driver involved. On mingw, `-mwindows` and `-mconsole` are effectively ignored in such case (they’re passed to the linker as `--subsystem`, but since that always appears before `-Wl,...` arguments, it’s overridden when the linker processes them). While not very important, it would be easy to keep compatibility by preserving the existing command-line parsing and using `is_gui_app` to set the default subsystem right after that.