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.
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