Skip to content

Commit

Permalink
Rely on autolinking for Swift Testing dependency of test support libr…
Browse files Browse the repository at this point in the history
…aries (#39)
  • Loading branch information
owenv authored Feb 1, 2025
1 parent 8586e98 commit 5362639
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,19 +209,13 @@ let package = Package(
.target(
name: "SwiftBuildTestSupport",
dependencies: ["SwiftBuild", "SWBTestSupport", "SWBUtil"],
swiftSettings: swiftSettings,
linkerSettings: [
.linkedFramework("Testing", .when(platforms: [.macOS]))
]),
swiftSettings: swiftSettings),
.target(
name: "SWBTestSupport",
dependencies: ["SwiftBuild", "SWBBuildSystem", "SWBCore", "SWBTaskConstruction", "SWBTaskExecution", "SWBUtil", "SWBLLBuild", "SWBMacro"],
swiftSettings: swiftSettings + [
// Temporary until swift-testing introduces replacement for this SPI
.define("DONT_HAVE_CUSTOM_EXECUTION_TRAIT", .when(platforms: [.macOS, .macCatalyst, .iOS, .tvOS, .watchOS, .visionOS, .windows]))
],
linkerSettings: [
.linkedFramework("Testing", .when(platforms: [.macOS]))
]),

// Tests
Expand Down

0 comments on commit 5362639

Please sign in to comment.