-
Notifications
You must be signed in to change notification settings - Fork 182
build, util: Update leveldb to 1.22 from upstream Bitcoin #2353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jamescowens
merged 5 commits into
gridcoin-community:development
from
jamescowens:update_leveldb_to_1.22
Oct 8, 2021
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4a6520f
Update leveldb tree from Bitcoin at commit 35a31d5f7e9cd71a210c1ed10a…
jamescowens c981834
Add crc32c from bitcoin commit 35a31d5f7e9cd71a210c1ed10abc9d772ff36049
jamescowens 39c9d0d
Update build system for leveldb 1.22+
jamescowens 720ec68
CRC32C build system integration
jamescowens a29a7a0
Add LCOV exception for crc32c
jamescowens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright (c) 2019 The Bitcoin Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
LIBCRC32C_INT = crc32c/libcrc32c.a | ||
LIBLEVELDB_SSE42_INT = leveldb/libleveldb_sse42.a | ||
|
||
EXTRA_LIBRARIES += $(LIBCRC32C_INT) | ||
|
||
LIBCRC32C = $(LIBCRC32C_INT) | ||
|
||
CRC32C_CPPFLAGS_INT = | ||
CRC32C_CPPFLAGS_INT += -I$(srcdir)/crc32c/include | ||
CRC32C_CPPFLAGS_INT += -DHAVE_BUILTIN_PREFETCH=@HAVE_BUILTIN_PREFETCH@ | ||
CRC32C_CPPFLAGS_INT += -DHAVE_MM_PREFETCH=@HAVE_MM_PREFETCH@ | ||
CRC32C_CPPFLAGS_INT += -DHAVE_STRONG_GETAUXVAL=@HAVE_STRONG_GETAUXVAL@ | ||
CRC32C_CPPFLAGS_INT += -DHAVE_WEAK_GETAUXVAL=@HAVE_WEAK_GETAUXVAL@ | ||
CRC32C_CPPFLAGS_INT += -DCRC32C_TESTS_BUILT_WITH_GLOG=0 | ||
|
||
if ENABLE_SSE42 | ||
CRC32C_CPPFLAGS_INT += -DHAVE_SSE42=1 | ||
else | ||
CRC32C_CPPFLAGS_INT += -DHAVE_SSE42=0 | ||
endif | ||
|
||
if ENABLE_ARM_CRC | ||
CRC32C_CPPFLAGS_INT += -DHAVE_ARM64_CRC32C=1 | ||
else | ||
CRC32C_CPPFLAGS_INT += -DHAVE_ARM64_CRC32C=0 | ||
endif | ||
|
||
if WORDS_BIGENDIAN | ||
CRC32C_CPPFLAGS_INT += -DBYTE_ORDER_BIG_ENDIAN=1 | ||
else | ||
CRC32C_CPPFLAGS_INT += -DBYTE_ORDER_BIG_ENDIAN=0 | ||
endif | ||
|
||
crc32c_libcrc32c_a_CPPFLAGS = $(AM_CPPFLAGS) $(CRC32C_CPPFLAGS_INT) $(CRC32C_CPPFLAGS) | ||
crc32c_libcrc32c_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) | ||
|
||
crc32c_libcrc32c_a_SOURCES = | ||
crc32c_libcrc32c_a_SOURCES += crc32c/include/crc32c/crc32c.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_arm64.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_arm64_check.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_internal.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_prefetch.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_read_le.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_round_up.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_sse42_check.h | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_sse42.h | ||
|
||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c.cc | ||
crc32c_libcrc32c_a_SOURCES += crc32c/src/crc32c_portable.cc | ||
|
||
if ENABLE_SSE42 | ||
LIBCRC32C_SSE42_INT = crc32c/libcrc32c_sse42.a | ||
EXTRA_LIBRARIES += $(LIBCRC32C_SSE42_INT) | ||
LIBCRC32C += $(LIBCRC32C_SSE42_INT) | ||
|
||
crc32c_libcrc32c_sse42_a_CPPFLAGS = $(crc32c_libcrc32c_a_CPPFLAGS) | ||
crc32c_libcrc32c_sse42_a_CXXFLAGS = $(crc32c_libcrc32c_a_CXXFLAGS) $(SSE42_CXXFLAGS) | ||
|
||
crc32c_libcrc32c_sse42_a_SOURCES = crc32c/src/crc32c_sse42.cc | ||
endif | ||
|
||
if ENABLE_ARM_CRC | ||
LIBCRC32C_ARM_CRC_INT = crc32c/libcrc32c_arm_crc.a | ||
EXTRA_LIBRARIES += $(LIBCRC32C_ARM_CRC_INT) | ||
LIBCRC32C += $(LIBCRC32C_ARM_CRC_INT) | ||
|
||
crc32c_libcrc32c_arm_crc_a_CPPFLAGS = $(crc32c_libcrc32c_a_CPPFLAGS) | ||
crc32c_libcrc32c_arm_crc_a_CXXFLAGS = $(crc32c_libcrc32c_a_CXXFLAGS) $(ARM_CRC_CXXFLAGS) | ||
|
||
crc32c_libcrc32c_arm_crc_a_SOURCES = crc32c/src/crc32c_arm64.cc | ||
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Build matrix / environment variables are explained on: | ||
# https://www.appveyor.com/docs/appveyor-yml/ | ||
# This file can be validated on: https://ci.appveyor.com/tools/validate-yaml | ||
|
||
version: "{build}" | ||
|
||
environment: | ||
matrix: | ||
# AppVeyor currently has no custom job name feature. | ||
# http://help.appveyor.com/discussions/questions/1623-can-i-provide-a-friendly-name-for-jobs | ||
- JOB: Visual Studio 2019 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
CMAKE_GENERATOR: Visual Studio 16 2019 | ||
|
||
platform: | ||
- x86 | ||
- x64 | ||
|
||
configuration: | ||
- RelWithDebInfo | ||
- Debug | ||
|
||
build_script: | ||
- git submodule update --init --recursive | ||
- mkdir build | ||
- cd build | ||
- if "%platform%"=="x86" (set CMAKE_GENERATOR_PLATFORM="Win32") | ||
else (set CMAKE_GENERATOR_PLATFORM="%platform%") | ||
- cmake --version | ||
- cmake .. -G "%CMAKE_GENERATOR%" -A "%CMAKE_GENERATOR_PLATFORM%" | ||
-DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%" -DCRC32C_USE_GLOG=0 | ||
- cmake --build . --config "%CONFIGURATION%" | ||
- cd .. | ||
|
||
test_script: | ||
- build\%CONFIGURATION%\crc32c_tests.exe | ||
- build\%CONFIGURATION%\crc32c_capi_tests.exe | ||
- build\%CONFIGURATION%\crc32c_bench.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.