[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:
Abtin Keshavarzian
2020-10-19 21:54:45 -07:00
committed by GitHub
parent a740350c5c
commit d98f935131
+1 -1
View File
@@ -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")
;;
*)