Barto22 commented on code in PR #18096:
URL: https://github.com/apache/nuttx/pull/18096#discussion_r2718240547


##########
libs/libxx/libcxx/0002-libcxx-decay-and-tzdb-fixes.patch:
##########
@@ -0,0 +1,49 @@
+--- libcxx/include/__type_traits/decay.h
++++ libcxx/include/__type_traits/decay.h
+@@ -25,7 +25,7 @@
+
+ _LIBCPP_BEGIN_NAMESPACE_STD
+
+-#if __has_builtin(__decay)
++#if __has_builtin(__decay) && !defined(_LIBCPP_DISABLE_DECAY_BUILTIN)
+ template <class _Tp>
+ using __decay_t _LIBCPP_NODEBUG = __decay(_Tp);
+
+--- libcxx/src/experimental/tzdb.cpp
++++ libcxx/src/experimental/tzdb.cpp
+@@ -50,6 +50,8 @@
+ _LIBCPP_WEAK string_view __libcpp_tzdb_directory() {
+ #if defined(__linux__)
+   return "/usr/share/zoneinfo/";
++#elif defined(CONFIG_LIBC_TZDIR)
++  return CONFIG_LIBC_TZDIR "/";
+ #else
+-#  error "unknown path to the IANA Time Zone Database"
++  return string_view{};
+ #endif
+
+--- libcxx/src/include/overridable_function.h
++++ libcxx/src/include/overridable_function.h
+@@ -96,7 +96,7 @@
+ }
+ _LIBCPP_END_NAMESPACE_STD
+
+-#elif defined(_LIBCPP_OBJECT_FORMAT_ELF)
++#elif defined(_LIBCPP_OBJECT_FORMAT_ELF) && 
!defined(CONFIG_ESPRESSIF_CHIP_SERIES)

Review Comment:
   Good point, I will try to move it somewhere else.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to