From cefb2ef82106523478e99ef7f7af3120e33c7170 Mon Sep 17 00:00:00 2001 From: Mathew Odden <1471252+mrodden@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:04:49 -0500 Subject: [PATCH] Fix C++23 build errors (#257) (#318) Co-authored-by: charleshofer --- .bazelrc | 2 ++ 1 file changed, 2 insertions(+) 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