aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-04-11 18:40:54 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2022-04-13 21:11:09 +0300
commita0e7f934148e35ce309ce998028e21f6df66e5cf (patch)
treec3d166ab659d1b8670135e9527564b72f4a630b0
parent3180c579f6034fa832c1c38a4b3f53eb713f4158 (diff)
downloadmeson-a0e7f934148e35ce309ce998028e21f6df66e5cf.zip
meson-a0e7f934148e35ce309ce998028e21f6df66e5cf.tar.gz
meson-a0e7f934148e35ce309ce998028e21f6df66e5cf.tar.bz2
compilers: fix broken CompCert support for release flags
This has been broken ever since the original implementation. Due to a typo, the optimization flag used a zero instead of an uppercase "o", which the compiler then breaks on during argument parsing because it is an invalid argument. Fixes #10267
-rw-r--r--mesonbuild/compilers/mixins/compcert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/compcert.py b/mesonbuild/compilers/mixins/compcert.py
index 283c043..5e2ba0d 100644
--- a/mesonbuild/compilers/mixins/compcert.py
+++ b/mesonbuild/compilers/mixins/compcert.py
@@ -32,7 +32,7 @@ ccomp_buildtype_args = {
'plain': [''],
'debug': ['-O0', '-g'],
'debugoptimized': ['-O0', '-g'],
- 'release': ['-03'],
+ 'release': ['-O3'],
'minsize': ['-Os'],
'custom': ['-Obranchless'],
} # type: T.Dict[str, T.List[str]]