Modifed buildtypes and armcc compiler flags to match documented results

pull/7157/head
Drew Reed 5 years ago committed by Jussi Pakkanen
parent 697bb28084
commit cce5f860b9
  1. 14
      mesonbuild/compilers/mixins/arm.py

@ -27,10 +27,10 @@ if T.TYPE_CHECKING:
arm_buildtype_args = { arm_buildtype_args = {
'plain': [], 'plain': [],
'debug': ['-O0', '--debug'], 'debug': [],
'debugoptimized': ['-O1', '--debug'], 'debugoptimized': [],
'release': ['-O3', '-Otime'], 'release': [],
'minsize': ['-O3', '-Ospace'], 'minsize': [],
'custom': [], 'custom': [],
} # type: T.Dict[str, T.List[str]] } # type: T.Dict[str, T.List[str]]
@ -38,9 +38,9 @@ arm_optimization_args = {
'0': ['-O0'], '0': ['-O0'],
'g': ['-g'], 'g': ['-g'],
'1': ['-O1'], '1': ['-O1'],
'2': ['-O2'], '2': [], # Compiler defaults to -O2
'3': ['-O3'], '3': ['-O3', '-Otime'],
's': [], 's': ['-O3'], # Compiler defaults to -Ospace
} # type: T.Dict[str, T.List[str]] } # type: T.Dict[str, T.List[str]]
armclang_buildtype_args = { armclang_buildtype_args = {

Loading…
Cancel
Save