Skip to content

Commit

Permalink
Ignore LNK4217 when linking tests (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle authored Sep 11, 2023
1 parent 457ccab commit e577319
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ let package = Package(
// Targets can depend on other targets in this package and products from dependencies.
.target(name: "WebDriver", path: "Sources"),
.target(name: "TestsCommon", path: "Tests/Common"),
.testTarget(name: "WebDriverTests", dependencies: ["WebDriver", "TestsCommon"]),
.testTarget(name: "UnitTests", dependencies: ["WebDriver", "TestsCommon"]),
.testTarget(
name: "WebDriverTests",
dependencies: ["WebDriver", "TestsCommon"],
// Ignore "LNK4217: locally defined symbol imported" spew due to SPM library support limitations
linkerSettings: [ .unsafeFlags(["-Xlinker", "-ignore:4217"]) ]),
.testTarget(
name: "UnitTests",
dependencies: ["WebDriver", "TestsCommon"],
// Ignore "LNK4217: locally defined symbol imported" spew due to SPM library support limitations
linkerSettings: [ .unsafeFlags(["-Xlinker", "-ignore:4217"]) ]),
]
)

0 comments on commit e577319

Please sign in to comment.