@@ -305,7 +305,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
305305 set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
306306 set (BUILTINS_${target} _CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "" )
307307 set (BUILTINS_${target} _CMAKE_SYSROOT "" CACHE STRING "" )
308- set (BUILTINS_${target} _CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" )
308+ set (BUILTINS_${target} _CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "" )
309309 foreach (lang C;CXX;ASM)
310310 set (BUILTINS_${target} _CMAKE_${lang} _local_flags "--target=${target} -mthumb" )
311311 if (${target} STREQUAL "armv8m.main-unknown-eabi" )
@@ -322,7 +322,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
322322 set (RUNTIMES_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
323323 set (RUNTIMES_${target} _CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "" )
324324 set (RUNTIMES_${target} _CMAKE_SYSROOT "" CACHE STRING "" )
325- set (RUNTIMES_${target} _CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" )
325+ set (RUNTIMES_${target} _CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "" )
326326 set (RUNTIMES_${target} _CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "" )
327327 foreach (lang C;CXX;ASM)
328328 set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -mthumb -Wno-atomic-alignment" CACHE STRING "" )
@@ -357,7 +357,7 @@ foreach(target riscv32-unknown-elf)
357357 set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
358358 set (BUILTINS_${target} _CMAKE_SYSTEM_PROCESSOR RISCV CACHE STRING "" )
359359 set (BUILTINS_${target} _CMAKE_SYSROOT "" CACHE STRING "" )
360- set (BUILTINS_${target} _CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" )
360+ set (BUILTINS_${target} _CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "" )
361361 foreach (lang C;CXX;ASM)
362362 set (BUILTINS_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f" CACHE STRING "" )
363363 endforeach ()
@@ -370,7 +370,7 @@ foreach(target riscv32-unknown-elf)
370370 set (RUNTIMES_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
371371 set (RUNTIMES_${target} _CMAKE_SYSTEM_PROCESSOR RISCV CACHE STRING "" )
372372 set (RUNTIMES_${target} _CMAKE_SYSROOT "" CACHE STRING "" )
373- set (RUNTIMES_${target} _CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "" )
373+ set (RUNTIMES_${target} _CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "" )
374374 set (RUNTIMES_${target} _CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "" )
375375 foreach (lang C;CXX;ASM)
376376 set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f" CACHE STRING "" )
0 commit comments