diff --git a/Package.swift b/Package.swift index 5c4679e..02d801a 100644 --- a/Package.swift +++ b/Package.swift @@ -50,10 +50,8 @@ let package = Package( ), // MARK: - Implementation details - .target( - name: "_NumericsShims", - dependencies: [], - exclude: excludedFilenames + .systemLibrary( + name: "_NumericsShims" ), .target( diff --git a/Sources/_NumericsShims/_NumericsShims.c b/Sources/_NumericsShims/_NumericsShims.c deleted file mode 100644 index 8ac212f..0000000 --- a/Sources/_NumericsShims/_NumericsShims.c +++ /dev/null @@ -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" diff --git a/Sources/_NumericsShims/include/_NumericsShims.h b/Sources/_NumericsShims/_NumericsShims.h similarity index 100% rename from Sources/_NumericsShims/include/_NumericsShims.h rename to Sources/_NumericsShims/_NumericsShims.h diff --git a/Sources/_NumericsShims/include/module.modulemap b/Sources/_NumericsShims/module.modulemap similarity index 83% rename from Sources/_NumericsShims/include/module.modulemap rename to Sources/_NumericsShims/module.modulemap index 077fb43..fa14464 100644 --- a/Sources/_NumericsShims/include/module.modulemap +++ b/Sources/_NumericsShims/module.modulemap @@ -1,3 +1,4 @@ module _NumericsShims { header "_NumericsShims.h" + link "m" }