apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.68k stars 142 forks source link

Swap availability for #if check on Float16. #157

Closed stephentyrone closed 3 years ago

stephentyrone commented 3 years ago

Xcode 12 on Catalina has Swift 5.3 but the macOS 10.15 SDK, which breaks the conditionals around Float16. Since the type is unconditionally unavailable on macOS, we can simply #if-out any Float16 extensions instead.

stephentyrone commented 3 years ago

@lorentey yeah, step 2 here is definitely to figure out how to avoid this mess in the future =)