Skip to content

Fix Zstd config guard macro#1333

Open
RaghunandanKumar wants to merge 1 commit into
google:mainfrom
RaghunandanKumar:fix-zstd-config-guard
Open

Fix Zstd config guard macro#1333
RaghunandanKumar wants to merge 1 commit into
google:mainfrom
RaghunandanKumar:fix-zstd-config-guard

Conversation

@RaghunandanKumar

Copy link
Copy Markdown

Fixes #1331.

Summary

  • Correct the HAVE_ZSTD guard in port/port_config.h.in so generated config headers respect an existing HAVE_ZSTD definition.
  • Align the guard spelling with CMakeLists.txt and port/port_stdcxx.h.

Verification

  • cmake -S . -B build-verify -DLEVELDB_BUILD_TESTS=OFF -DLEVELDB_BUILD_BENCHMARKS=OFF -DLEVELDB_INSTALL=OFF -DHAVE_ZSTD=1
  • cmake -S . -B build -DLEVELDB_BUILD_BENCHMARKS=OFF -DLEVELDB_INSTALL=OFF
  • cmake --build build --parallel 4
  • ctest --test-dir build --output-on-failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: macro name inconsistency at line 34: HAVE_Zstd should be HAVE_ZSTD

1 participant