Fixed error with cross-compiling / universal binaries on Mac - #544 [skip ci]

This commit is contained in:
Andrew Kane
2024-05-07 16:46:47 -07:00
parent 19cbbfdd69
commit 9894ca3e4e
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
## 0.7.1 (unreleased)
- Fixed `undefined symbol` error with GCC 8
- Fixed error with cross-compiling / universal binaries on Mac
## 0.7.0 (2024-04-29)

View File

@@ -23,6 +23,11 @@
#define USE_TARGET_CLONES
#endif
/* Needed for cross-compiling / universal binaries on Mac */
#if defined(USE_DISPATCH) && !defined(HAVE__GET_CPUID) && defined(__APPLE_CC__)
#define HAVE__GET_CPUID
#endif
#if defined(USE_DISPATCH)
#define HALFVEC_DISPATCH
#endif