@@ -312,7 +312,6 @@ 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 "" )
316
315
endforeach ()
317
316
foreach (type SHARED;MODULE;EXE )
318
317
set (BUILTINS_${target}_CMAKE_${type}_LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "" )
@@ -333,31 +332,18 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
333
332
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 "" )
334
333
endif ()
335
334
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 "" )
337
335
endforeach ()
338
336
foreach (type SHARED;MODULE;EXE )
339
337
set (RUNTIMES_${target}_CMAKE_${type}_LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "" )
340
338
endforeach ()
341
339
set (RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
342
340
set (RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
343
341
set (RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "" )
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 "" )
342
+ set (RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
343
+ set (RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "" )
359
344
set (RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
360
345
set (RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "" )
346
+ set (RUNTIMES_${target}_LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "" )
361
347
set (RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "" )
362
348
set (RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
363
349
set (RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
@@ -371,7 +357,7 @@ foreach(target armv6m-unknown-eabi;armv7m-unknown-eabi;armv8m.main-unknown-eabi)
371
357
set (RUNTIMES_${target}_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
372
358
set (RUNTIMES_${target}_LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
373
359
set (RUNTIMES_${target}_LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
374
- set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libunwind;libcxxabi; libcxx" CACHE STRING "" )
360
+ set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
375
361
endforeach ()
376
362
377
363
foreach (target riscv32-unknown-elf )
@@ -405,23 +391,11 @@ foreach(target riscv32-unknown-elf)
405
391
set (RUNTIMES_${target}_LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
406
392
set (RUNTIMES_${target}_LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
407
393
set (RUNTIMES_${target}_LIBC_USE_NEW_HEADER_GEN OFF CACHE BOOL "" )
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 "" )
394
+ set (RUNTIMES_${target}_LIBCXX_ABI_VERSION 2 CACHE STRING "" )
395
+ set (RUNTIMES_${target}_LIBCXX_CXX_ABI none CACHE STRING "" )
423
396
set (RUNTIMES_${target}_LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
424
397
set (RUNTIMES_${target}_LIBCXX_ENABLE_STATIC ON CACHE BOOL "" )
398
+ set (RUNTIMES_${target}_LIBCXX_ENABLE_NEW_DELETE_DEFINITIONS ON CACHE BOOL "" )
425
399
set (RUNTIMES_${target}_LIBCXX_LIBC "llvm-libc" CACHE STRING "" )
426
400
set (RUNTIMES_${target}_LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
427
401
set (RUNTIMES_${target}_LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
@@ -435,7 +409,7 @@ foreach(target riscv32-unknown-elf)
435
409
set (RUNTIMES_${target}_LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
436
410
set (RUNTIMES_${target}_LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
437
411
set (RUNTIMES_${target}_LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
438
- set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libunwind;libcxxabi; libcxx" CACHE STRING "" )
412
+ set (RUNTIMES_${target}_LLVM_ENABLE_RUNTIMES "libc;libcxx" CACHE STRING "" )
439
413
endforeach ()
440
414
441
415
set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments