Skip to content

Commit 537017a

Browse files
authored
Merge pull request #33836 from theblixguy/chore/fix-benchmark-float80
[Benchmark] Fix build failure on ARMv7 by guarding Float80 availability
2 parents 765dd47 + 3692751 commit 537017a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmark/single-source/FloatingPointConversion.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ extension MockBinaryFloatingPoint {
6161
init(_ value: Int) { self.init(_Value(value)) }
6262
init(_ value: Float) { self.init(_Value(value)) }
6363
init(_ value: Double) { self.init(_Value(value)) }
64-
init(_ value: Float80) { self.init(_Value(value)) }
64+
#if !(os(Windows) || os(Android)) && (arch(i386) || arch(x86_64))
65+
init(_ value: Float80) { self.init(_Value(value)) }
66+
#endif
6567
init(integerLiteral value: _Value.IntegerLiteralType) {
6668
self.init(_Value(integerLiteral: value))
6769
}

0 commit comments

Comments
 (0)