diff --git a/.bazelrc b/.bazelrc index 3a7012876..593fe8371 100644 --- a/.bazelrc +++ b/.bazelrc @@ -111,6 +111,8 @@ build:clang --copt=-Wno-gnu-offsetof-extensions build:clang --copt=-Qunused-arguments # Error on struct/class mismatches, since this causes link failures on Windows. build:clang --copt=-Werror=mismatched-tags +# Don't error out on C++23 extensions. Needed for building the clang-19. +build:clang --copt=-Wno-error=c23-extensions # Configs for CUDA build:cuda --repo_env TF_NEED_CUDA=1