diff --git a/flex/internal/BUILD b/flex/internal/BUILD index 2038483..ac39836 100644 --- a/flex/internal/BUILD +++ b/flex/internal/BUILD @@ -3,8 +3,8 @@ load("@rules_flex//flex/internal:toolchain.bzl", "flex_toolchain_info") [flex_toolchain_info( name = "toolchain_v{}".format(version), - flex_tool = "@flex_v{}//bin:flex".format(version), flex_lexer_h = "@flex_v{}//:flex_lexer_h".format(version), + flex_tool = "@flex_v{}//bin:flex".format(version), tags = ["manual"], visibility = ["//visibility:public"], ) for version in VERSION_URLS] diff --git a/flex/internal/repository.bzl b/flex/internal/repository.bzl index 649270d..099d72b 100644 --- a/flex/internal/repository.bzl +++ b/flex/internal/repository.bzl @@ -90,7 +90,7 @@ def _flex_repository(ctx): # Fix build errors in older Flex due to use of undeclared functions. if version in ["2.5.36", "2.5.37"]: ctx.template("flexdef.h", "flexdef.h", substitutions = { - "extern void lerrsf": "extern void lerrsf_fatal(const char *msg, const char arg[]);\nextern void lerrsf" + "extern void lerrsf": "extern void lerrsf_fatal(const char *msg, const char arg[]);\nextern void lerrsf", }, executable = False) ctx.file("WORKSPACE", "workspace(name = {name})\n".format(name = repr(ctx.name)))