| 1 |
// This file isn't part of a standard HACL source tree. |
| 2 |
// |
| 3 |
// It is required for compatibility with universal2 macOS builds. The code in |
| 4 |
// Hacl_Hash_Blake2s_Simd128.c will compile on macOS ARM64, but performance |
| 5 |
// isn't great, so it's disabled. However, because universal2 builds are |
| 6 |
// compiled in a single pass, autoconf detects that the required compiler |
| 7 |
// features *are* available, and tries to include this file. |
| 8 |
// |
| 9 |
// To compensate for this, autoconf will include *this* file instead of |
| 10 |
// Hacl_Hash_Blake2s_Simd128.c when compiling for universal. This allows the |
| 11 |
// underlying source code of HACL to remain unmodified. |
| 12 |
#if !(defined(__APPLE__) && defined(__arm64__)) |
| 13 |
#include "Hacl_Hash_Blake2s_Simd128.c" |
| 14 |
#endif |