From 071fca088461260c8667b075d2c3c2a78d7b1fd8 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Wed, 17 Jun 2026 11:03:40 -0700 Subject: [PATCH] Add -fexceptions to the antlr gencode to avoid breaking users building with -fno-exceptions PiperOrigin-RevId: 933819478 --- bazel/antlr.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/bazel/antlr.bzl b/bazel/antlr.bzl index 2abbb6dbd..a4d28cdf8 100644 --- a/bazel/antlr.bzl +++ b/bazel/antlr.bzl @@ -55,6 +55,7 @@ def antlr_cc_library(name, src, package): generated, "@antlr4-cpp-runtime//:antlr4-cpp-runtime", ], + copts = ["-fexceptions"], linkstatic = 1, )