Enable and include Builtin module to pickup fadd/fmul_relaxed.

This commit is contained in:
Stephen Canon committed 2026-10-11 17:00:36 -04:00
1 parent 20fe3d7d8e
commit 673c0f6c3d
5 files changed
+7

No files matched your search

+3
View File
@@ -47,6 +47,9 @@ let package = Package(
name: "RealModule",
dependencies: ["_NumericsShims"],
exclude: excludedFilenames,
swiftSettings: [
.enableExperimentalFeature("BuiltinModule")
],
linkerSettings: [
.linkedLibrary("m", .when(platforms: [.linux, .android]))
]
+1
View File
@@ -10,6 +10,7 @@
//===----------------------------------------------------------------------===//
import _NumericsShims
import Builtin
extension Double: Real {
@_transparent
+1
View File
@@ -10,6 +10,7 @@
//===----------------------------------------------------------------------===//
import _NumericsShims
import Builtin
extension Float: Real {
@_transparent
+1
View File
@@ -10,6 +10,7 @@
//===----------------------------------------------------------------------===//
import _NumericsShims
import Builtin
// Float16 is only available on macOS when targeting arm64.
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
+1
View File
@@ -10,6 +10,7 @@
//===----------------------------------------------------------------------===//
import _NumericsShims
import Builtin
// Restrict extension to platforms for which Float80 exists.
#if (arch(i386) || arch(x86_64)) && !os(Windows) && !os(Android)