Skip to content

Commit 0074fed

Browse files
Fix C++23 build errors (#257) (#318)
Co-authored-by: charleshofer <[email protected]>
1 parent 82a2ec7 commit 0074fed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ build:clang --copt=-Wno-gnu-offsetof-extensions
111111
build:clang --copt=-Qunused-arguments
112112
# Error on struct/class mismatches, since this causes link failures on Windows.
113113
build:clang --copt=-Werror=mismatched-tags
114+
# Don't error out on C++23 extensions. Needed for building the clang-19.
115+
build:clang --copt=-Wno-error=c23-extensions
114116

115117
# Configs for CUDA
116118
build:cuda --repo_env TF_NEED_CUDA=1

0 commit comments

Comments
 (0)