Skip to content

Commit

Permalink
build: adjust rocksdb build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Sep 7, 2024
1 parent 2c88afe commit 9ff7a9a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
14 changes: 12 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,19 @@ if %build_deps% == 1 (
echo building rocksdb.
pushd deps\rocksdb
cmake . -B%build_dir% %deps_cmake_flags%^
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE^
-DROCKSDB_BUILD_SHARED:BOOL=OFF^
-DWITH_TESTS:BOOL=OFF^
-DWITH_BENCHMARK_TOOLS:BOOL=OFF
-DROCKSDB_INSTALL_ON_WINDOWS:BOOL=ON^
-DFAIL_ON_WARNINGS:BOOL=OFF^
-DWITH_TESTS:BOOL=OFF^
-DWITH_BENCHMARK:BOOL=OFF^
-DWITH_GFLAGS:BOOL=OFF^
-DWITH_TOOLS:BOOL=OFF^
-DWITH_CORE_TOOLS:BOOL=OFF^
-DWITH_BENCHMARK_TOOLS:BOOL=OFF^
-DWITH_MD_LIBRARY:BOOL=OFF^
-DUSE_RTTI:BOOL=ON^
-DPORTABLE:BOOL=ON
if errorlevel 1 goto error
cmake --build %build_dir% --config %build_config% --target install
if errorlevel 1 goto error
Expand Down
10 changes: 9 additions & 1 deletion deps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ rocksdb:
cmake . -B$(build) \
-DROCKSDB_BUILD_SHARED:BOOL=OFF \
-DWITH_TESTS:BOOL=OFF \
-DWITH_BENCHMARK_TOOLS:BOOL=OFF\
-DWITH_BENCHMARK:BOOL=OFF \
-DWITH_GFLAGS:BOOL=OFF \
-DWITH_TOOLS:BOOL=OFF \
-DWITH_CORE_TOOLS:BOOL=OFF \
-DWITH_BENCHMARK_TOOLS:BOOL=OFF \
-DFAIL_ON_WARNINGS:BOOL=OFF \
-DUSE_RTTI:BOOL=ON \
-DPORTABLE:BOOL=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DCMAKE_INSTALL_PREFIX:PATH="$(prefix)" \
&& cmake --build $(build) --target install
Expand Down

0 comments on commit 9ff7a9a

Please sign in to comment.