Skip to content

Commit c2c22b3

Browse files
mkruskal-googlecopybara-github
authored andcommitted
Add -fexceptions to the antlr gencode to avoid breaking users building with -fno-exceptions
PiperOrigin-RevId: 933757556
1 parent 8b7068a commit c2c22b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bazel/antlr.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def antlr_cc_library(name, src, package):
5555
generated,
5656
"@antlr4-cpp-runtime//:antlr4-cpp-runtime",
5757
],
58+
copts = ["-fexceptions"],
5859
linkstatic = 1,
5960
)
6061

0 commit comments

Comments
 (0)