drowe67 / LPCNet

Experimental Neural Net speech coding for FreeDV
BSD 3-Clause "New" or "Revised" License
68 stars 24 forks source link

Reenable AVX/AVX2 for x86 Macs when building universal binaries. #37

Closed tmiw closed 3 years ago

tmiw commented 3 years ago

This PR forces AVX/AVX2 flags to be set to true if BUILD_OSX_UNIVERSAL is 1. Apple's clang will simply ignore those optimizations when building the ARM blob to include in the universal binary while including those optimizations for the x86 blob. AFAIK there aren't any supported Macs anymore that don't support AVX/AVX2 so this should be okay.

+ @drowe67