Skip to content

Commit 6791224

Browse files
authored
Fix C++23 build errors (#257)
1 parent 6b98b68 commit 6791224

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
@@ -124,6 +124,8 @@ build:clang --copt=-Wno-gnu-offsetof-extensions
124124
build:clang --copt=-Qunused-arguments
125125
# Error on struct/class mismatches, since this causes link failures on Windows.
126126
build:clang --copt=-Werror=mismatched-tags
127+
# Don't error out on C++23 extensions. Needed for building the clang-19.
128+
build:clang --copt=-Wno-error=c23-extensions
127129

128130
# Configs for CUDA
129131
build:cuda --repo_env TF_NEED_CUDA=1

0 commit comments

Comments
 (0)