@@ -328,9 +328,24 @@ foreach(target armv6m-unknown-eabi)
328328 endforeach ()
329329 set (RUNTIMES_${target} _LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
330330 set (RUNTIMES_${target} _LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
331+ set (RUNTIMES_${target} _LIBCXX_ABI_VERSION 2 CACHE STRING "" )
332+ set (RUNTIMES_${target} _LIBCXX_CXX_ABI none CACHE STRING "" )
333+ set (RUNTIMES_${target} _LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
334+ set (RUNTIMES_${target} _LIBCXX_ENABLE_STATIC OFF CACHE BOOL "" )
335+ set (RUNTIMES_${target} _LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
336+ set (RUNTIMES_${target} _LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
337+ set (RUNTIMES_${target} _LIBCXX_ENABLE_LOCALIZATION OFF CACHE BOOL "" )
338+ set (RUNTIMES_${target} _LIBCXX_ENABLE_UNICODE OFF CACHE BOOL "" )
339+ set (RUNTIMES_${target} _LIBCXX_ENABLE_WIDE_CHARACTERS OFF CACHE BOOL "" )
340+ set (RUNTIMES_${target} _LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "" )
341+ set (RUNTIMES_${target} _LIBCXX_ENABLE_RTTI OFF CACHE BOOL "" )
342+ set (RUNTIMES_${target} _LIBCXX_ENABLE_THREADS OFF CACHE BOOL "" )
343+ set (RUNTIMES_${target} _LIBCXX_ENABLE_MONOTONIC_CLOCK OFF CACHE BOOL "" )
344+ set (RUNTIMES_${target} _LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "" )
345+ set (RUNTIMES_${target} _LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
331346 set (RUNTIMES_${target} _LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
332347 set (RUNTIMES_${target} _LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
333- set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc" CACHE STRING "" )
348+ set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc;libcxx " CACHE STRING "" )
334349endforeach ()
335350
336351foreach (target riscv32-unknown-elf)
@@ -361,9 +376,24 @@ foreach(target riscv32-unknown-elf)
361376 endforeach ()
362377 set (RUNTIMES_${target} _LLVM_LIBC_FULL_BUILD ON CACHE BOOL "" )
363378 set (RUNTIMES_${target} _LIBC_ENABLE_USE_BY_CLANG ON CACHE BOOL "" )
379+ set (RUNTIMES_${target} _LIBCXX_ABI_VERSION 2 CACHE STRING "" )
380+ set (RUNTIMES_${target} _LIBCXX_CXX_ABI none CACHE STRING "" )
381+ set (RUNTIMES_${target} _LIBCXX_ENABLE_SHARED OFF CACHE BOOL "" )
382+ set (RUNTIMES_${target} _LIBCXX_ENABLE_STATIC OFF CACHE BOOL "" )
383+ set (RUNTIMES_${target} _LIBCXX_ENABLE_FILESYSTEM OFF CACHE BOOL "" )
384+ set (RUNTIMES_${target} _LIBCXX_ENABLE_RANDOM_DEVICE OFF CACHE BOOL "" )
385+ set (RUNTIMES_${target} _LIBCXX_ENABLE_LOCALIZATION OFF CACHE BOOL "" )
386+ set (RUNTIMES_${target} _LIBCXX_ENABLE_UNICODE OFF CACHE BOOL "" )
387+ set (RUNTIMES_${target} _LIBCXX_ENABLE_WIDE_CHARACTERS OFF CACHE BOOL "" )
388+ set (RUNTIMES_${target} _LIBCXX_ENABLE_EXCEPTIONS OFF CACHE BOOL "" )
389+ set (RUNTIMES_${target} _LIBCXX_ENABLE_RTTI OFF CACHE BOOL "" )
390+ set (RUNTIMES_${target} _LIBCXX_ENABLE_THREADS OFF CACHE BOOL "" )
391+ set (RUNTIMES_${target} _LIBCXX_ENABLE_MONOTONIC_CLOCK OFF CACHE BOOL "" )
392+ set (RUNTIMES_${target} _LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "" )
393+ set (RUNTIMES_${target} _LIBCXX_USE_COMPILER_RT ON CACHE BOOL "" )
364394 set (RUNTIMES_${target} _LLVM_INCLUDE_TESTS OFF CACHE BOOL "" )
365395 set (RUNTIMES_${target} _LLVM_ENABLE_ASSERTIONS OFF CACHE BOOL "" )
366- set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc" CACHE STRING "" )
396+ set (RUNTIMES_${target} _LLVM_ENABLE_RUNTIMES "libc;libcxx " CACHE STRING "" )
367397endforeach ()
368398
369399set (LLVM_BUILTIN_TARGETS "${BUILTIN_TARGETS} " CACHE STRING "" )
0 commit comments