mirror of
https://github.com/apple/swift-numerics
synced 2026-11-22 04:30:45 +00:00
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:
1 parent
182c9b246b
commit
e8a3ddbb3e
2 files changed
+10
-8
No files matched your search
+5
-5
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user