@@ -312,6 +312,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
312
312
set (BUILTINS_${target}_CMAKE_${lang}_local_flags "${BUILTINS_${target} _CMAKE_${lang} _local_flags} -mfloat-abi=softfp -march=armv8m.main+fp+dsp -mcpu=cortex-m33" CACHE STRING "" )
313
313
endif ()
314
314
set (BUILTINS_${target}_CMAKE_${lang}_FLAGS "${BUILTINS_${target} _CMAKE_${lang} _local_flags}" CACHE STRING "" )
315
+ set (BUILTINS_${target}_CMAKE_${lang}_FLAGS_MINSIZEREL "-Oz -DNDEBUG" CACHE STRING "" )
315
316
endforeach ()
316
317
foreach (type SHARED;MODULE;EXE )
317
318
set (BUILTINS_${target}_CMAKE_${type}_LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "" )
@@ -332,18 +333,31 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
332
333
set (RUNTIMES_${target}_CMAKE_${lang}_local_flags "${RUNTIMES_${target} _CMAKE_${lang} _local_flags} -mfloat-abi=softfp -march=armv8m.main+fp+dsp -mcpu=cortex-m33" CACHE STRING "" )
333
334
endif ()
334
335
set (RUNTIMES_${target}_CMAKE_${lang}_FLAGS "${RUNTIMES_${target} _CMAKE_${lang} _local_flags}" CACHE STRING "" )
336
+ set (RUNTIMES_${target}_CMAKE_${lang}_FLAGS_MINSIZEREL "-Oz -DNDEBUG" CACHE STRING "" )
335
337
endforeach ()
336
338
foreach (type SHARED;MODULE;EXE )
337
339
set (RUNTIMES_${target}_CMAKE_${type}_LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "" )
338
340
endforeach ()
339
341
set (RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
340
342
set (RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
341
343
set (RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "" )
342
- set (RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
343
- set (RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "" )
344
+ set (RUNTIMES_${target}_LIBUNWIND_IS_BAREMETAL ON CACHE BOOL "" )
345
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
346
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_THREADS OFF CACHE BOOL "" )
347
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "" )
348
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_STATIC ON CACHE BOOL "" )
349
+ set (RUNTIMES_${target}_LIBUNWIND_REMEMBER_HEAP_ALLOC ON CACHE BOOL "" )
350
+ set (RUNTIMES_${target}_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "" )
351
+ set (RUNTIMES_${target}_LIBCXXABI_BAREMETAL ON CACHE BOOL "" )
352
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
353
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "" )
354
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_STATIC ON CACHE BOOL "" )
355
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_THREADS OFF CACHE BOOL "" )
356
+ set (RUNTIMES_${target}_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "" )
357
+ set (RUNTIMES_${target}_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "" )
358
+ set (RUNTIMES_${target}_LIBCXX_ABI_UNSTABLE ON CACHE BOOL "" )
344
359
set (RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
345
360
set (RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "" )
346
- set (RUNTIMES_${target}_LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "" )
347
361
set (RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "" )
348
362
set (RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
349
363
set (RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
@@ -357,7 +371,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
357
371
set (RUNTIMES_${target}_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
358
372
set (RUNTIMES_${target}_LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
359
373
set (RUNTIMES_${target}_LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
360
- set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
374
+ set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libunwind;libcxxabi; libcxx" CACHE STRING "" )
361
375
endforeach ()
362
376
363
377
foreach (target riscv32-unknown-elf )
@@ -391,11 +405,23 @@ foreach(target riscv32-unknown-elf)
391
405
set (RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
392
406
set (RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
393
407
set (RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "" )
394
- set (RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
395
- set (RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "" )
408
+ set (RUNTIMES_${target}_LIBUNWIND_IS_BAREMETAL ON CACHE BOOL "" )
409
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
410
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_THREADS OFF CACHE BOOL "" )
411
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_SHARED OFF CACHE BOOL "" )
412
+ set (RUNTIMES_${target}_LIBUNWIND_ENABLE_STATIC ON CACHE BOOL "" )
413
+ set (RUNTIMES_${target}_LIBUNWIND_REMEMBER_HEAP_ALLOC ON CACHE BOOL "" )
414
+ set (RUNTIMES_${target}_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "" )
415
+ set (RUNTIMES_${target}_LIBCXXABI_BAREMETAL ON CACHE BOOL "" )
416
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
417
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_SHARED OFF CACHE BOOL "" )
418
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_STATIC ON CACHE BOOL "" )
419
+ set (RUNTIMES_${target}_LIBCXXABI_ENABLE_THREADS OFF CACHE BOOL "" )
420
+ set (RUNTIMES_${target}_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "" )
421
+ set (RUNTIMES_${target}_LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "" )
422
+ set (RUNTIMES_${target}_LIBCXX_ABI_UNSTABLE ON CACHE BOOL "" )
396
423
set (RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
397
424
set (RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "" )
398
- set (RUNTIMES_${target}_LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "" )
399
425
set (RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "" )
400
426
set (RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
401
427
set (RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
@@ -409,7 +435,7 @@ foreach(target riscv32-unknown-elf)
409
435
set (RUNTIMES_${target}_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
410
436
set (RUNTIMES_${target}_LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
411
437
set (RUNTIMES_${target}_LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
412
- set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
438
+ set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libunwind;libcxxabi; libcxx" CACHE STRING "" )
413
439
endforeach ()
414
440
415
441
set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments