You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clock_gettime is a POSIX API that may not be available on platforms like
baremetal; timespec_get is the C11 equivalent. This change adds support
for using timespec_get instead of clock_gettime to improve compatibility
with non-POSIX platforms. For now, this is only enabled with LLVM libc
which implemented timespec_get in llvm#116102, but in the future this can be
expanded to other platforms.
# TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
331
331
# 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)\" -D_LIBCPP_PRINT=1")
# TODO: The preprocessor defines workaround various issues in libc and libc++ integration.
387
387
# These should be addressed and removed over time.
388
-
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"CACHESTRING"")
388
+
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)\" -D_LIBCPP_PRINT=1"CACHESTRING"")
0 commit comments