@@ -305,7 +305,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
305
305
set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
306
306
set (BUILTINS_${target} _CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "" )
307
307
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 "" )
309
309
foreach (lang C;CXX;ASM)
310
310
set (BUILTINS_${target} _CMAKE_${lang} _local_flags "--target=${target} -mthumb" )
311
311
if (${target} STREQUAL "armv8m.main-unknown-eabi" )
@@ -322,7 +322,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
322
322
set (RUNTIMES_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
323
323
set (RUNTIMES_${target} _CMAKE_SYSTEM_PROCESSOR arm CACHE STRING "" )
324
324
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 "" )
326
326
set (RUNTIMES_${target} _CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "" )
327
327
foreach (lang C;CXX;ASM)
328
328
set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -mthumb -Wno-atomic-alignment" CACHE STRING "" )
@@ -357,7 +357,7 @@ foreach(target riscv32-unknown-elf)
357
357
set (BUILTINS_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
358
358
set (BUILTINS_${target} _CMAKE_SYSTEM_PROCESSOR RISCV CACHE STRING "" )
359
359
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 "" )
361
361
foreach (lang C;CXX;ASM)
362
362
set (BUILTINS_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f" CACHE STRING "" )
363
363
endforeach ()
@@ -370,7 +370,7 @@ foreach(target riscv32-unknown-elf)
370
370
set (RUNTIMES_${target} _CMAKE_SYSTEM_NAME Generic CACHE STRING "" )
371
371
set (RUNTIMES_${target} _CMAKE_SYSTEM_PROCESSOR RISCV CACHE STRING "" )
372
372
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 "" )
374
374
set (RUNTIMES_${target} _CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY CACHE STRING "" )
375
375
foreach (lang C;CXX;ASM)
376
376
set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f" CACHE STRING "" )
0 commit comments