Skip to content

Commit

Permalink
libstdc++, xtensa: Allows to enable '--enable_libstdcxx_time=yes' for…
Browse files Browse the repository at this point in the history
… canadian cross builds.

Clean regenerate the configure script, revert a part of 3dbae38
  • Loading branch information
antmak committed May 11, 2022
1 parent 558d3be commit fc3fa26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libstdc++-v3/acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,13 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
ac_has_sched_yield=yes
esac
elif test x"$enable_libstdcxx_time" = x"yes"; then
# xtensa-esp32: This sets the same settings for canadian cross and native builds
ac_has_clock_monotonic=yes
ac_has_clock_realtime=yes
ac_has_nanosleep=no
ac_has_sched_yield=yes
elif test x"$enable_libstdcxx_time" != x"no"; then
if test x"$enable_libstdcxx_time" = x"rt"; then
Expand Down
7 changes: 7 additions & 0 deletions libstdc++-v3/configure
Original file line number Diff line number Diff line change
Expand Up @@ -20623,6 +20623,13 @@ fi
ac_has_sched_yield=yes
esac

elif test x"$enable_libstdcxx_time" = x"yes"; then
# xtensa-esp32: This sets the same settings for canadian cross and native builds
ac_has_clock_monotonic=yes
ac_has_clock_realtime=yes
ac_has_nanosleep=no
ac_has_sched_yield=yes

elif test x"$enable_libstdcxx_time" != x"no"; then

if test x"$enable_libstdcxx_time" = x"rt"; then
Expand Down

0 comments on commit fc3fa26

Please sign in to comment.