Limit use of hardware crc32 check to SSE 4.2
authorDaniel M. Weeks <dan@danweeks.net>
Mon, 17 Aug 2015 17:40:12 +0000 (10:40 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Mon, 17 Aug 2015 18:20:28 +0000 (11:20 -0700)
commitee6b4fce019454e4cde0355c9f084ab1284d41bf
tree2edcbd70f99d56516ee2d9c478c9f63c73023ad8
parentcd69a53aed1a97579a45d48e5a82786651f568df
Limit use of hardware crc32 check to SSE 4.2

Summary: Fixes compiling crc32c function on older hardware. (I believe this problem was introduced by 7ec1fc0e0e27ed56c1d18d33af9711a17e9ec750).

Also ensures is in final library since the API suggests it should be. This should correct a number of build problems for other projects like wdt and hhvm when they are compiled using a shared folly library rather than borrowing sources at compile time.
Closes #296

Reviewed By: @yfeldblum

Differential Revision: D2340699

Pulled By: @sgolemon
folly/Checksum.cpp
folly/Makefile.am