From f884ce35b0011afde0fab8168d936e94f8a2f41a Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Wed, 7 Mar 2018 15:21:09 +0100 Subject: [PATCH] DNM: intensionally BRAKE build when there is no fast CRC32 path available. DO NOT merge! This is solely for testing bug #22534. Signed-off-by: Radoslaw Zarzynski --- util/crc32c.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/crc32c.cc b/util/crc32c.cc index 2c8cb097..ba4f594b 100644 --- a/util/crc32c.cc +++ b/util/crc32c.cc @@ -352,9 +352,11 @@ static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) { *l = _mm_crc32_u64(*l, LE_LOAD64(*p)); *p += 8; #else +# error "Oops, __AVX2__ and _WIN64 are NOT defined. Going Slow_CRC32()!" Slow_CRC32(l, p); #endif #else +# error "Oops, __SSE4_2__ is NOT defined. Going Slow_CRC32()!" Slow_CRC32(l, p); #endif } -- 2.47.3