aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorAndrea Pappacoda <andrea@pappacoda.it>2021-09-21 16:31:07 +0200
committerDylan Baker <dylan@pnwbakers.com>2021-09-21 09:58:48 -0700
commit68eca11cc641cb02c7755f1e44fa3301863eacfd (patch)
tree566bc9df0a1bbeeab1427ad0eb6249ca3acc76eb /mesonbuild/interpreter/interpreter.py
parentca866bcfc715fb39255e649a30a7fc02ad6ca8e2 (diff)
downloadmeson-68eca11cc641cb02c7755f1e44fa3301863eacfd.zip
meson-68eca11cc641cb02c7755f1e44fa3301863eacfd.tar.gz
meson-68eca11cc641cb02c7755f1e44fa3301863eacfd.tar.bz2
Use -Oz when optimization=s in Clang
-Oz is the appropriate flag to use when you want to produce the smallest possible binary, and is one would expect when setting optimization to s or using the minsize build type.
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 1268e3e..4d4e5da 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2322,7 +2322,7 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
# https://github.com/mesonbuild/meson/issues/3275#issuecomment-641354956
# https://github.com/mesonbuild/meson/issues/3742
warnargs = ('/W1', '/W2', '/W3', '/W4', '/Wall', '-Wall', '-Wextra')
- optargs = ('-O0', '-O2', '-O3', '-Os', '/O1', '/O2', '/Os')
+ optargs = ('-O0', '-O2', '-O3', '-Os', '-Oz', '/O1', '/O2', '/Os')
for arg in args:
if arg in warnargs:
mlog.warning(f'Consider using the built-in warning_level option instead of using "{arg}".',