mirror of
https://github.com/espressif/openthread.git
synced 2026-08-15 07:07:46 +00:00
[cmake-build] ensure cc2538 uses 'CMAKE_BUILD_TYPE=Release' (#5669)
This change ensures the cc2538 cmake build uses the release build type and the compile option `-Os` (optimize for size). This harmonizes the cmake build with automake version. It also helps address an issue with recent PRs failing on cc2538 cmake build with arm-gcc-5 due to reaching flash size limit (without `-Os` option).
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ main()
|
||||
OT_CMAKE_NINJA_TARGET=("ot-cli-mtd" "ot-ncp-mtd")
|
||||
options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=Release")
|
||||
;;
|
||||
cc1352 | cc2652 | samr21 | qpg6095)
|
||||
cc1352 | cc2538 | cc2652 | qpg6095 | samr21)
|
||||
options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=Release")
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user