Skip to content

Commit fb885a1

Browse files
Abseil Teamcopybara-github
authored andcommitted
<filesystem> is not supported for XTENSA.
Disable it in //absl/hash/internal/hash.h. PiperOrigin-RevId: 792609580 Change-Id: Id3805175f66eefd2630f5d422b0864bbd3909d61
1 parent 11abedd commit fb885a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

absl/hash/internal/hash.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
#include "absl/types/variant.h"
8989
#include "absl/utility/utility.h"
9090

91-
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L
91+
#if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \
92+
!defined(__XTENSA__)
9293
#include <filesystem> // NOLINT
9394
#endif
9495

@@ -633,7 +634,8 @@ H AbslHashValue(H hash_state, std::basic_string_view<Char> str) {
633634
(!defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || \
634635
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 130000) && \
635636
(!defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || \
636-
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500)
637+
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101500) && \
638+
(!defined(__XTENSA__))
637639

638640
#define ABSL_INTERNAL_STD_FILESYSTEM_PATH_HASH_AVAILABLE 1
639641

0 commit comments

Comments
 (0)