From e577319196bf8d40bb7aeb90b3929d3db04c4807 Mon Sep 17 00:00:00 2001 From: Tristan Labelle Date: Mon, 11 Sep 2023 09:17:49 -0400 Subject: [PATCH] Ignore LNK4217 when linking tests (#90) --- Package.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 6f98091..feed49a 100644 --- a/Package.swift +++ b/Package.swift @@ -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"]) ]), ] )