Skip to content

Commit

Permalink
Account for M4 being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
abrisco committed Aug 1, 2024
1 parent 3bc4990 commit 60ddf07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dependency_support/org_gnu_bison/bison.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ def correct_bison_env_for_action(env, bison):
bison.owner.workspace_name,
)

actual = "external/{}".format(bison.owner.workspace_name)
bison_env["BISON_PKGDATADIR"] = bison_env["BISON_PKGDATADIR"].replace(
bison_runfiles_dir,
"external/{}".format(bison.owner.workspace_name),
)
bison_env["M4"] = bison_env["M4"].replace(
bison_runfiles_dir,
"{}/external/{}".format(bison.root.path, bison.owner.workspace_name),
)

for key, value in bison_env.items():
bison_env[key] = value.replace(bison_runfiles_dir, actual)
Expand Down

0 comments on commit 60ddf07

Please sign in to comment.