Move the -lm link command to RealModule (from _NumericsShims).

Hopefully this resolves some niche link errors that we've seen sporadically.
This commit is contained in:
Stephen Canon committed 2023-11-30 09:27:03 -05:00
1 parent 182c9b246b
commit e8a3ddbb3e
2 files changed
+10 -8

No files matched your search

+5 -5
View File
@@ -46,16 +46,16 @@ let package = Package(
.target(
name: "RealModule",
dependencies: ["_NumericsShims"],
exclude: excludedFilenames
exclude: excludedFilenames,
linkerSettings: [
.linkedLibrary("m", .when(platforms: [.linux, .android]))
]
),
// MARK: - Implementation details
.target(
name: "_NumericsShims",
exclude: excludedFilenames,
linkerSettings: [
.linkedLibrary("m", .when(platforms: [.linux, .android]))
]
exclude: excludedFilenames
),
.target(
+5 -3
View File
@@ -46,14 +46,16 @@ let package = Package(
.target(
name: "RealModule",
dependencies: ["_NumericsShims"],
exclude: excludedFilenames
exclude: excludedFilenames,
linkerSettings: [
.linkedLibrary("m", .when(platforms: [.linux, .android]))
]
),
// MARK: - Implementation details
.target(
name: "_NumericsShims",
exclude: excludedFilenames,
linkerSettings: [.linkedLibrary("m", .when(platforms: [.linux, .android]))]
exclude: excludedFilenames
),
.target(