Debian Codegraph @

Modules/_hacl/Hacl_Hash_Blake2b_Simd256_universal2.c

raw
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_Blake2b_Simd256.c *will* compile on macOS x86_64, but *won't*
5 // compile on ARM64. However, because universal2 builds are compiled in a
6 // single pass, autoconf detects that the required compiler features *are*
7 // available, and tries to compile this file, which then fails because of the
8 // lack of support on ARM64.
9 //
10 // To compensate for this, autoconf will include *this* file instead of
11 // Hacl_Hash_Blake2b_Simd256.c when compiling for universal. This allows the
12 // underlying source code of HACL to remain unmodified.
13 #if !(defined(__APPLE__) && defined(__arm64__))
14 #include "Hacl_Hash_Blake2b_Simd256.c"
15 #endif