-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add win_subsystem kwarg. Closes #7765. #7791
Conversation
43e8343
to
f1d0ac1
Compare
mesonbuild/compilers/mixins/gnu.py
Outdated
if 'windows' in value: | ||
return ['-mwindows'] | ||
elif 'console' in value: | ||
return ['-mconsole'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be a warning for something like windows,6.0
, since the 6.0
part is ignored, or is this irrelevant for MinGW?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GCC documentation does not say anything about specifying a version. So I don't really know. I'm guessing people who care about this detail will only use MSVC anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These things are controllable via ld
flags: see --subsystem
, --major-subsystem-version
, --minor-subsystem-version
in man ld
.
If you look at the output of gcc -dumpspecs
you can see that -mwindows
is a convenient shortcut for --subsystem windows
and some libraries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewriting this but currently msys download page is unresponsive so I can't actually test it locally but instead have to use CI. :(
f1d0ac1
to
bbf1e93
Compare
@@ -673,6 +674,12 @@ be passed to [shared and static libraries](#library). | |||
- `pie` *(since 0.49.0)*: build a position-independent executable | |||
- `native`: is a boolean controlling whether the target is compiled for the | |||
build or host machines. Defaults to false, building for the host machine. | |||
- `win_subsystem` *(since 0.56.0)* specifies the subsystem type to use | |||
on the Windows platform. Typical values include `console` for text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unclear if numeric values are expected to work here, so perhaps is a string specifying the subsystem...
?
6b66c4c
to
d6cc358
Compare
That should be all done now. @dcbaker this probably means that you need to add some sort of a gui kwarg to the freedesktop module. Is that ok? |
Yeah, that's fine. I was just sorta piggy backing on it because it was convenient. |
The instant deprecation is annoying, it triggers about 60 times when building QEMU. Because 0.55.x doesn't have the Now, for QEMU the situation is not that bad: we distribute our own copy of Meson (which makes it much easier to stay on the bleeding edge), we haven't even had a release yet that required Meson, and we probably want to adopt 0.56.0 ASAP anyway due to #7760. But then, distros may not want to use the embedded QEMU, and in any case we want to work with upstream as much as possible to share our pain points even for the future. I'll create a pull request to restrict the deprecation message to
For the last two, it's probably time for Meson to have a formal deprecation policy. The policy should specify:
|
Would the situation improve if all deprecations were only logged once by default? I understand that the situation is suboptimal, but I see no reason not to deprecate an old function immediately if there is a new and better alternative. As for restricting the warning to |
Yeah in the end I agree and
That |
No description provided.