Skip to content

Commit 8de61eb

Browse files
authored
[Support/BLAKE3] quick fix for Cygwin build (#148635)
BLAKE3 1.8.2 ( imported in d2ad63a ) fails to build for the Cygwin target. see: BLAKE3-team/BLAKE3#494 As a temporary workaround, add `&& !defined(__CYGWIN__)` to BLAKE3 locally. resolves #148365
1 parent 7e22063 commit 8de61eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Support/BLAKE3/blake3_dispatch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void blake3_xof_many(const uint32_t cv[8],
236236
#if defined(IS_X86)
237237
const enum cpu_feature features = get_cpu_features();
238238
MAYBE_UNUSED(features);
239-
#if !defined(_WIN32) && !defined(BLAKE3_NO_AVX512)
239+
#if !defined(_WIN32) && !defined(__CYGWIN__) && !defined(BLAKE3_NO_AVX512)
240240
if (features & AVX512VL) {
241241
blake3_xof_many_avx512(cv, block, block_len, counter, flags, out, outblocks);
242242
return;

llvm/lib/Support/BLAKE3/blake3_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ void blake3_hash_many_avx512(const uint8_t *const *inputs, size_t num_inputs,
324324
uint8_t flags, uint8_t flags_start,
325325
uint8_t flags_end, uint8_t *out);
326326

327-
#if !defined(_WIN32)
327+
#if !defined(_WIN32) && !defined(__CYGWIN__)
328328
LLVM_LIBRARY_VISIBILITY
329329
void blake3_xof_many_avx512(const uint32_t cv[8],
330330
const uint8_t block[BLAKE3_BLOCK_LEN],

0 commit comments

Comments
 (0)