-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
buildtype=minsize won't minimize the binary with Visual Studio #12265
Comments
matyalatte
changed the title
buildtype=minsize won't work with Visual Studio
buildtype=minsize won't minimize the binary with Visual Studio
Sep 17, 2023
bruchar1
added a commit
to bruchar1/meson
that referenced
this issue
Dec 1, 2023
This is a first step to make `buildtype` a true alias of `debug` and `optimization` options. See mesonbuild#10808. Relates to: - mesonbuild#11645 - mesonbuild#12096 - mesonbuild#5920 - mesonbuild#5814 - mesonbuild#8220 - mesonbuild#8493 - mesonbuild#9540 - mesonbuild#10487 - mesonbuild#12265 - mesonbuild#8308 - mesonbuild#8214 - mesonbuild#7194 - mesonbuild#11732
bruchar1
added a commit
to bruchar1/meson
that referenced
this issue
Dec 2, 2023
This is a first step to make `buildtype` a true alias of `debug` and `optimization` options. See mesonbuild#10808. Relates to: - mesonbuild#11645 - mesonbuild#12096 - mesonbuild#5920 - mesonbuild#5814 - mesonbuild#8220 - mesonbuild#8493 - mesonbuild#9540 - mesonbuild#10487 - mesonbuild#12265 - mesonbuild#8308 - mesonbuild#8214 - mesonbuild#7194 - mesonbuild#11732
bruchar1
added a commit
to bruchar1/meson
that referenced
this issue
Dec 5, 2023
This is a first step to make `buildtype` a true alias of `debug` and `optimization` options. See mesonbuild#10808. Relates to: - mesonbuild#11645 - mesonbuild#12096 - mesonbuild#5920 - mesonbuild#5814 - mesonbuild#8220 - mesonbuild#8493 - mesonbuild#9540 - mesonbuild#10487 - mesonbuild#12265 - mesonbuild#8308 - mesonbuild#8214 - mesonbuild#7194 - mesonbuild#11732
jpakkane
pushed a commit
that referenced
this issue
Dec 23, 2023
bruchar1
added a commit
to bruchar1/meson
that referenced
this issue
Jan 10, 2024
nirbheek
pushed a commit
that referenced
this issue
Feb 6, 2024
nirbheek
pushed a commit
that referenced
this issue
Feb 6, 2024
soumyaDghosh
pushed a commit
to soumyaDghosh/meson
that referenced
this issue
Jun 4, 2024
gerioldman
pushed a commit
to gerioldman/meson
that referenced
this issue
Jul 2, 2024
This is a first step to make `buildtype` a true alias of `debug` and `optimization` options. See mesonbuild#10808. Relates to: - mesonbuild#11645 - mesonbuild#12096 - mesonbuild#5920 - mesonbuild#5814 - mesonbuild#8220 - mesonbuild#8493 - mesonbuild#9540 - mesonbuild#10487 - mesonbuild#12265 - mesonbuild#8308 - mesonbuild#8214 - mesonbuild#7194 - mesonbuild#11732
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When you use
-Dbuildtype=minsize
(or-Doptimization=s
) with--backend=vs
, msvc will use/O1 /Ot
for optimization.like this
It means
/Os
will be overwritten by/Ot
, I think?When I added
/Os
to the options to overwrite/Ot
, my app became smaller.To Reproduce
Expected behavior
Remove
/Ot
from the compiler options when optimizing for size.system parameters
Is this a cross build or just a plain native build (for the same computer)?
native build
what operating system (e.g. MacOS Catalina, Windows 10, CentOS 8.0, Ubuntu 18.04, etc.)
Windows 10
what Python version are you using e.g. 3.8.0
Idk, I installed meson with the released msi.
what
meson --version
1.2.1
what
ninja --version
if it's a Ninja buildnot ninja build
The text was updated successfully, but these errors were encountered: