@@ -329,7 +329,7 @@ foreach(target armv6m-none-eabi;armv7m-none-eabi;armv8m.main-none-eabi)
329329 foreach (lang C;CXX;ASM)
330330 # TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
331331 # These should be addressed and removed over time.
332- set (RUNTIMES_${target} _CMAKE_${lang} _local_flags "--target=${target} -mthumb -Wno-atomic-alignment \" -Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \" -Dfprintf(stream, format, ...)=printf(format)\" \" -Dtimeval=struct timeval{int tv_sec; int tv_usec;} \" \" - Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" )
332+ set (RUNTIMES_${target} _CMAKE_${lang} _local_flags "--target=${target} -mthumb -Wno-atomic-alignment \" -Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \" -Dfprintf(stream, format, ...)=printf(format)\" \" -Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" )
333333 if (${target} STREQUAL "armv8m.main-none-eabi" )
334334 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 "" )
335335 endif ()
@@ -384,7 +384,7 @@ foreach(target riscv32-unknown-elf)
384384 foreach (lang C;CXX;ASM)
385385 # TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
386386 # These should be addressed and removed over time.
387- set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f -Wno-atomic-alignment \" -Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \" -Dfprintf(stream, format, ...)=printf(format)\" \" -Dtimeval=struct timeval{int tv_sec; int tv_usec;} \" \" - Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" CACHE STRING "" )
387+ set (RUNTIMES_${target} _CMAKE_${lang} _FLAGS "--target=${target} -march=rv32imafc -mabi=ilp32f -Wno-atomic-alignment \" -Dvfprintf(stream, format, vlist)=vprintf(format, vlist)\" \" -Dfprintf(stream, format, ...)=printf(format)\" \" -Dgettimeofday(tv, tz)\" -D_LIBCPP_PRINT=1" CACHE STRING "" )
388388 endforeach ()
389389 foreach (type SHARED;MODULE;EXE)
390390 set (RUNTIMES_${target} _CMAKE_${type} _LINKER_FLAGS "-fuse-ld=lld" CACHE STRING "" )
0 commit comments