diff options
author | Tomohiro Kashiwada <kikairoya@gmail.com> | 2025-07-18 06:16:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 00:16:08 +0300 |
commit | 8de61eb01c9752f0488ed8b52d01fe3d0873ff6c (patch) | |
tree | e9a4bd22d85911863b28f53a334a5a271e50bec3 | |
parent | 7e220630d28741b30bb4423e34e76654c7d9d1f7 (diff) | |
download | llvm-8de61eb01c9752f0488ed8b52d01fe3d0873ff6c.zip llvm-8de61eb01c9752f0488ed8b52d01fe3d0873ff6c.tar.gz llvm-8de61eb01c9752f0488ed8b52d01fe3d0873ff6c.tar.bz2 |
[Support/BLAKE3] quick fix for Cygwin build (#148635)
BLAKE3 1.8.2 ( imported in d2ad63a193216d008c8161879a59c5f42e0125cc )
fails to build for the Cygwin target.
see: https://github.com/BLAKE3-team/BLAKE3/issues/494
As a temporary workaround, add `&& !defined(__CYGWIN__)` to BLAKE3
locally.
resolves https://github.com/llvm/llvm-project/issues/148365
-rw-r--r-- | llvm/lib/Support/BLAKE3/blake3_dispatch.c | 2 | ||||
-rw-r--r-- | llvm/lib/Support/BLAKE3/blake3_impl.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/BLAKE3/blake3_dispatch.c b/llvm/lib/Support/BLAKE3/blake3_dispatch.c index d00580f..19918aa 100644 --- a/llvm/lib/Support/BLAKE3/blake3_dispatch.c +++ b/llvm/lib/Support/BLAKE3/blake3_dispatch.c @@ -236,7 +236,7 @@ void blake3_xof_many(const uint32_t cv[8], #if defined(IS_X86) const enum cpu_feature features = get_cpu_features(); MAYBE_UNUSED(features); -#if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512) +#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(BLAKE3_NO_AVX512) if (features & AVX512VL) { blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks); return; diff --git a/llvm/lib/Support/BLAKE3/blake3_impl.h b/llvm/lib/Support/BLAKE3/blake3_impl.h index deed079..dd71e72 100644 --- a/llvm/lib/Support/BLAKE3/blake3_impl.h +++ b/llvm/lib/Support/BLAKE3/blake3_impl.h @@ -324,7 +324,7 @@ void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs, uint8_t flags, uint8_t flags_start, uint8_t flags_end, uint8_t *out); -#if !defined(_WIN32) +#if !defined(_WIN32) && !defined(__CYGWIN__) LLVM_LIBRARY_VISIBILITY void blake3_xof_many_avx512(const uint32_t cv[8], const uint8_t block[BLAKE3_BLOCK_LEN], |