Skip to content

Commit

Permalink
Merge PR: fix rocksdb install for MacOS (#2828)
Browse files Browse the repository at this point in the history
* fix rocksdb install for MacOS

* Delete arm64_crc.patch
  • Loading branch information
ylsGit authored Dec 1, 2022
1 parent a4005fc commit c9f5ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 106 deletions.
103 changes: 0 additions & 103 deletions libs/rocksdb/arm64_crc.patch

This file was deleted.

6 changes: 3 additions & 3 deletions libs/rocksdb/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ install_linux() {

install_macos(){
$sh_c "git clone https://github.com/facebook/rocksdb.git"
$sh_c "cd rocksdb && git checkout ${VERSION} && git apply --reject ../libs/rocksdb/arm64_crc.patch"
$sh_c "cd rocksdb && git checkout ${VERSION}"
$sh_c "cd rocksdb && make clean"
$sh_c "cd rocksdb && make uninstall"
$sh_c "cd rocksdb && make -j${num_proc} shared_lib"
$sh_c "cd rocksdb && make uninstall DEBUG_LEVEL=0"
$sh_c "cd rocksdb && make -j${num_proc} shared_lib EXTRA_CXXFLAGS='-Wno-deprecated-copy -Wno-unused-but-set-variable'"
$sh_c "cd rocksdb && make install-shared"
}

Expand Down

0 comments on commit c9f5ba4

Please sign in to comment.