diff options
| author | rashid <[email protected]> | 2024-02-27 22:08:46 +0300 |
|---|---|---|
| committer | rashid <[email protected]> | 2024-02-27 22:23:52 +0300 |
| commit | 4efc3d2008cdc7c0f78f88cd0873bb97fe7abe46 (patch) | |
| tree | e25a2c2c8806881e192d722da58d07b7fe696837 | |
| parent | d29884ea0aeb4dc97938dceac4d3238db1ed0d77 (diff) | |
fix: use -mthumb for armv5te to optimize size
f66fc56d4ffe271aa8b379c0297014fc1e85ed40
| -rwxr-xr-x | build/ymake_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index 70829e0d99c..46bb297ed78 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -1248,7 +1248,7 @@ class GnuToolchain(Toolchain): elif target.is_arm968e_s: self.c_flags_platform.append('-march=armv5te -mcpu=arm968e-s -mthumb-interwork -mlittle-endian') - if (target.is_armv7 or target.is_armv8m or target.is_armv7em) and build.is_size_optimized: + if (target.is_armv7 or target.is_armv8m or target.is_armv7em or target.is_armv5te) and build.is_size_optimized: # Enable ARM Thumb2 variable-length instruction encoding # to reduce code size self.c_flags_platform.append('-mthumb') |
