Skip to content

Commit 2ef19e8

Browse files
committed
Remove superfluous code
1 parent 45cfece commit 2ef19e8

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

swift/toolchains/xcode_swift_toolchain.bzl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,12 @@ def _swift_linkopts_cc_info(
307307
)
308308

309309
def _test_linking_context(
310-
apple_toolchain,
311310
target_triple,
312311
toolchain_label,
313312
xcode_config):
314313
"""Returns a `CcLinkingContext` containing linker flags for test binaries.
315314
316315
Args:
317-
apple_toolchain: The `apple_common.apple_toolchain()` object.
318316
target_triple: The target triple `struct`.
319317
toolchain_label: The label of the Swift toolchain that will act as the
320318
owner of the linker input propagating the flags.
@@ -324,10 +322,6 @@ def _test_linking_context(
324322
A `CcLinkingContext` that will provide linker flags to `swift_test`
325323
binaries.
326324
"""
327-
platform_developer_framework_dir = _platform_developer_framework_dir(
328-
apple_toolchain,
329-
target_triple,
330-
)
331325

332326
# Weakly link to XCTest. It's possible that machine that links the test
333327
# binary will have Xcode installed at a different path than the machine that
@@ -340,19 +334,6 @@ def _test_linking_context(
340334
if _is_xcode_at_least_version(xcode_config, "16.0"):
341335
linkopts.append("-Wl,-weak_framework,Testing")
342336

343-
if platform_developer_framework_dir:
344-
linkopts.extend([
345-
"-F{}".format(platform_developer_framework_dir),
346-
"-L{}".format(
347-
swift_developer_lib_dir([
348-
struct(
349-
developer_path_label = "platform",
350-
path = platform_developer_framework_dir,
351-
),
352-
]),
353-
),
354-
])
355-
356337
# We use these as the rpaths for linking tests so that the required
357338
# libraries are found if Xcode is installed in a different location on the
358339
# machine that runs the tests than the machine used to link them.
@@ -765,7 +746,6 @@ def _xcode_swift_toolchain_impl(ctx):
765746
swiftcopts.extend(ctx.attr._copts[BuildSettingInfo].value)
766747

767748
test_linking_context = _test_linking_context(
768-
apple_toolchain = apple_toolchain,
769749
target_triple = target_triple,
770750
toolchain_label = ctx.label,
771751
xcode_config = xcode_config,

0 commit comments

Comments
 (0)