Skip to content

Commit

Permalink
Test: Add -Os to target.json c/cpp flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Sep 8, 2023
1 parent ffe0265 commit 194f26a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions target-locked.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"architecture": "CORTEX_M4F",
"asm_flags": "-fno-exceptions -fno-unwind-tables --specs=nosys.specs -mcpu=cortex-m4 -mthumb",
"c_flags": "-std=c99 --specs=nosys.specs -Warray-bounds",
"c_flags": "-Os -std=c99 --specs=nosys.specs -Warray-bounds",
"cmake_definitions": {
"MBED_LEGACY_TOOLCHAIN": "GCC_ARM;"
},
Expand Down Expand Up @@ -42,7 +42,7 @@
"TOUCH_BUTTON_SENSITIVITY": 5,
"USE_ACCEL_LSB": 0
},
"cpp_flags": "-std=c++11 -fwrapv -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wno-array-bounds",
"cpp_flags": "-Os -std=c++11 -fwrapv -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wno-array-bounds",
"cpu_opts": "-mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp",
"definitions": "-DAPP_TIMER_V2 -DAPP_TIMER_V2_RTC1_ENABLED -DNRF_DFU_TRANSPORT_BLE=1 -DNRF52833_XXAA -DNRF52833 -DTARGET_MCU_NRF52833 -DNRF5 -DNRF52833 -D__CORTEX_M4 -DS113 -DTOOLCHAIN_GCC -D__START=target_start",
"device": "MICROBIT",
Expand Down
4 changes: 2 additions & 2 deletions target.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
},
"cpu_opts":"-mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp",
"asm_flags":"-fno-exceptions -fno-unwind-tables --specs=nosys.specs -mcpu=cortex-m4 -mthumb",
"c_flags":"-std=c99 --specs=nosys.specs -Warray-bounds",
"cpp_flags":"-std=c++11 -fwrapv -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wno-array-bounds",
"c_flags":"-Os -std=c99 --specs=nosys.specs -Warray-bounds",
"cpp_flags":"-Os -std=c++11 -fwrapv -fno-rtti -fno-threadsafe-statics -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wno-array-bounds",
"linker_flags":"-Wl,--no-wchar-size-warning -Wl,--gc-sections -Wl,--wrap,atexit -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group",
"libraries":[
{
Expand Down

0 comments on commit 194f26a

Please sign in to comment.