File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed
Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,10 @@ let package = Package(
5050 ) ,
5151
5252 // MARK: - Implementation details
53- . systemLibrary(
54- name: " _NumericsShims "
53+ . target(
54+ name: " _NumericsShims " ,
55+ exclude: excludedFilenames,
56+ linkerSettings: [ . linkedLibrary( " m " , . when( platforms: [ . linux] ) ) ]
5557 ) ,
5658
5759 . target(
Original file line number Diff line number Diff line change 1+ //===--- NumericsShims.c --------------------------------------*- swift -*-===//
2+ //
3+ // This source file is part of the Swift Numerics open source project
4+ //
5+ // Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
6+ // Licensed under Apache License v2.0 with Runtime Library Exception
7+ //
8+ // See https://swift.org/LICENSE.txt for license information
9+ //
10+ //===----------------------------------------------------------------------===//
11+
12+ // This file exists only to trigger the NumericShims module to build; without
13+ // it swiftpm won't build anything, and then the shims are not available for
14+ // the modules that need them.
15+
16+ // If any shims are added that are not pure header inlines, whatever runtime
17+ // support they require can be added to this file.
18+
19+ #include " _NumericsShims.h "
File renamed without changes.
Original file line number Diff line number Diff line change 11module _NumericsShims {
22 header "_NumericsShims.h"
3- link "m"
43}
You can’t perform that action at this time.
0 commit comments