aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
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/compilers
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/compilers')
-rw-r--r--mesonbuild/compilers/mixins/clang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/clang.py b/mesonbuild/compilers/mixins/clang.py
index f7e9492..133ce96 100644
--- a/mesonbuild/compilers/mixins/clang.py
+++ b/mesonbuild/compilers/mixins/clang.py
@@ -40,7 +40,7 @@ clang_optimization_args = {
'1': ['-O1'],
'2': ['-O2'],
'3': ['-O3'],
- 's': ['-Os'],
+ 's': ['-Oz'],
} # type: T.Dict[str, T.List[str]]
class ClangCompiler(GnuLikeCompiler):