diff options
author | Andrea Pappacoda <andrea@pappacoda.it> | 2021-09-21 16:31:07 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-09-21 09:58:48 -0700 |
commit | 68eca11cc641cb02c7755f1e44fa3301863eacfd (patch) | |
tree | 566bc9df0a1bbeeab1427ad0eb6249ca3acc76eb /mesonbuild/compilers | |
parent | ca866bcfc715fb39255e649a30a7fc02ad6ca8e2 (diff) | |
download | meson-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.py | 2 |
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): |