Skip to content

Commit

Permalink
Migrate Automatic Exec Groups by adding a toolchain parameter to the …
Browse files Browse the repository at this point in the history
…affected actions (#4116)
  • Loading branch information
kotlaja authored Aug 25, 2023
1 parent 2f628a0 commit 5824a6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bazel/p4_library.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""P4 compilation rule."""

load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain", "use_cpp_toolchain")
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "CPP_TOOLCHAIN_TYPE", "find_cpp_toolchain", "use_cpp_toolchain")

def _extract_common_p4c_args(ctx):
"""Extract common arguments for p4c build rules."""
Expand Down Expand Up @@ -54,6 +54,7 @@ def _run_shell_cmd_with_p4c(ctx, command, **run_shell_kwargs):
transitive = [cpp_toolchain.all_files],
),
use_default_shell_env = True,
toolchain = CPP_TOOLCHAIN_TYPE,
**run_shell_kwargs
)

Expand Down

0 comments on commit 5824a6b

Please sign in to comment.