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
pull/10280/head
Eli Schwartz 3 years ago committed by Jussi Pakkanen
parent 3180c579f6
commit a0e7f93414
  1. 2
      mesonbuild/compilers/mixins/compcert.py

@ -32,7 +32,7 @@ ccomp_buildtype_args = {
'plain': [''], 'plain': [''],
'debug': ['-O0', '-g'], 'debug': ['-O0', '-g'],
'debugoptimized': ['-O0', '-g'], 'debugoptimized': ['-O0', '-g'],
'release': ['-03'], 'release': ['-O3'],
'minsize': ['-Os'], 'minsize': ['-Os'],
'custom': ['-Obranchless'], 'custom': ['-Obranchless'],
} # type: T.Dict[str, T.List[str]] } # type: T.Dict[str, T.List[str]]

Loading…
Cancel
Save