Fix action label evaluation in cc_sysroot

BEGIN_PUBLIC

Fix action label evaluation in cc_sysroot

Explicitly converts action labels in cc_sysroot to Label objects to address issues where the labels were being evaluated as relative to the module instantiating cc_sysroot rules.

END_PUBLIC

PiperOrigin-RevId: 667520654
Change-Id: Ia64306cc172dfaa747ef28a92390bcd90296b109
This commit is contained in:
Googler 2024-08-26 03:08:51 -07:00 committed by Copybara-Service
parent 2480c90525
commit a778282a15
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ def cc_sysroot(name, sysroot, **kwargs):
cc_args(
name = name,
actions = [
"//cc/toolchains/actions:cpp_compile_actions",
"//cc/toolchains/actions:c_compile",
"//cc/toolchains/actions:link_actions",
Label("//cc/toolchains/actions:cpp_compile_actions"),
Label("//cc/toolchains/actions:c_compile"),
Label("//cc/toolchains/actions:link_actions"),
],
args = ["--sysroot={sysroot}"],
format = {"sysroot": sysroot},