From 319b1505e8ef733b96abfd8c5842f4059a08db92 Mon Sep 17 00:00:00 2001 From: Nomura Date: Wed, 13 Sep 2023 20:36:30 +0200 Subject: [PATCH] Metrowerks: set optlevel 3 to max optimization args According to the Meson documentation, optimization level 3 should set the highest possible optimization for the compiler in use. In Metrowerks, this is 'O4,p'. However, Meson's Metrowerks implementation mapped opt level 3 to '-O3'. This has been fixed. --- mesonbuild/compilers/mixins/metrowerks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/mixins/metrowerks.py b/mesonbuild/compilers/mixins/metrowerks.py index 69fa10a20..8c3eca586 100644 --- a/mesonbuild/compilers/mixins/metrowerks.py +++ b/mesonbuild/compilers/mixins/metrowerks.py @@ -173,7 +173,7 @@ mwcc_optimization_args: T.Dict[str, T.List[str]] = { 'g': ['-Op'], '1': ['-O1'], '2': ['-O2'], - '3': ['-O3'], + '3': ['-O4,p'], 's': ['-Os'] }