From d8b273f2022c32b6eb2c68cb6d95896d3b353e31 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Wed, 24 Mar 2021 13:07:04 -0700 Subject: Remove ctx support from path_placeholders.platform_frameworks(). RELNOTES: apple_support.path_placeholders.platform_frameworks() no longer accepts a ctx argument. PiperOrigin-RevId: 364873873 (cherry picked from commit 9c175c7f47c476006491be5dce510a15f05067df) --- test/apple_support_test.bzl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/apple_support_test.bzl b/test/apple_support_test.bzl index 8adae7d..80de720 100644 --- a/test/apple_support_test.bzl +++ b/test/apple_support_test.bzl @@ -129,6 +129,10 @@ def _apple_support_test_impl(ctx): arguments = [run_output.path], ) + platform_frameworks = apple_support.path_placeholders.platform_frameworks( + apple_fragment = ctx.fragments.apple, + ) + apple_support.run( ctx, outputs = [run_output_xcode_path_in_args], @@ -136,9 +140,7 @@ def _apple_support_test_impl(ctx): arguments = [ run_output_xcode_path_in_args.path, "XCODE_PATH_ARG={}".format(apple_support.path_placeholders.xcode()), - "FRAMEWORKS_PATH_ARG={}".format( - apple_support.path_placeholders.platform_frameworks(ctx), - ), + "FRAMEWORKS_PATH_ARG={}".format(platform_frameworks), "SDKROOT_PATH_ARG={}".format(apple_support.path_placeholders.sdkroot()), ], xcode_path_resolve_level = apple_support.xcode_path_resolve_level.args, @@ -149,7 +151,7 @@ def _apple_support_test_impl(ctx): "XCODE_PATH_ARG={}".format(apple_support.path_placeholders.xcode()), ) action_args.add( - "FRAMEWORKS_PATH_ARG={}".format(apple_support.path_placeholders.platform_frameworks(ctx)), + "FRAMEWORKS_PATH_ARG={}".format(platform_frameworks), ) action_args.add( "SDKROOT_PATH_ARG={}".format(apple_support.path_placeholders.sdkroot()), -- cgit v1.2.3