From: Radoslaw Zarzynski Date: Wed, 7 Mar 2018 14:21:09 +0000 (+0100) Subject: DNM: intensionally BRAKE build when there is no fast CRC32 path available. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f884ce35b0011afde0fab8168d936e94f8a2f41a;p=rocksdb.git 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 --- 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 }