aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.leveldb.include
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-07-12 12:58:20 -0400
committerCory Fields <cory-nospam-@coryfields.com>2017-07-13 12:49:05 -0400
commitd34d77a51b846a2459e4447762edcb2b66c95550 (patch)
tree9bd474ca5e6394be1d86703196b53ad497f779dd /src/Makefile.leveldb.include
parente8b95239eeb052b122786d9cca6bc58106837599 (diff)
build: verify that the assembler can handle crc32 functions
Also, enable crc32 even if -msse4.2 wasn't added by us, as long as it works. This allows custom flags (such as -march=native) to work as expected.
Diffstat (limited to 'src/Makefile.leveldb.include')
-rw-r--r--src/Makefile.leveldb.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.leveldb.include b/src/Makefile.leveldb.include
index ac38141f43..833f3d2a10 100644
--- a/src/Makefile.leveldb.include
+++ b/src/Makefile.leveldb.include
@@ -142,7 +142,7 @@ leveldb_libmemenv_a_SOURCES += leveldb/helpers/memenv/memenv.h
leveldb_libleveldb_sse42_a_CPPFLAGS = $(leveldb_libleveldb_a_CPPFLAGS)
leveldb_libleveldb_sse42_a_CXXFLAGS = $(leveldb_libleveldb_a_CXXFLAGS)
-if ENABLE_SSE42
+if ENABLE_HWCRC32
leveldb_libleveldb_sse42_a_CPPFLAGS += -DLEVELDB_PLATFORM_POSIX_SSE
leveldb_libleveldb_sse42_a_CXXFLAGS += $(SSE42_CXXFLAGS)
endif