Make _NumericsShims a systemLibrary target.

This commit is contained in:
Stephen Canon committed 2022-04-06 15:21:00 -04:00
1 parent 027bcc5b8e
commit cc53a7b085
4 files changed
+3 -23

No files matched your search

+2 -4
View File
@@ -50,10 +50,8 @@ let package = Package(
),
// MARK: - Implementation details
.target(
name: "_NumericsShims",
dependencies: [],
exclude: excludedFilenames
.systemLibrary(
name: "_NumericsShims"
),
.target(
-19
View File
@@ -1,19 +0,0 @@
//===--- NumericsShims.c --------------------------------------*- swift -*-===//
//
// This source file is part of the Swift Numerics open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
//
//===----------------------------------------------------------------------===//
// This file exists only to trigger the NumericShims module to build; without
// it swiftpm won't build anything, and then the shims are not available for
// the modules that need them.
// If any shims are added that are not pure header inlines, whatever runtime
// support they require can be added to this file.
#include "_NumericsShims.h"
@@ -1,3 +1,4 @@
module _NumericsShims {
header "_NumericsShims.h"
link "m"
}