Skip to content

Commit

Permalink
(#5945) [rocksdb][m1] Enable CRC features, not activated by default
Browse files Browse the repository at this point in the history
* [rocksdb][m1] Enable CRC features, not activated by default

* handle fPIC
  • Loading branch information
jgsogo authored Jun 19, 2021
1 parent 913c1a5 commit 9e89453
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/rocksdb/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def configure(self):
if self.settings.build_type == "Debug":
self.options.use_rtti = True # Rtti are used in asserts for debug mode...

if self.options.shared:
del self.options.fPIC

def requirements(self):
if self.options.with_gflags:
self.requires("gflags/2.2.2")
Expand Down Expand Up @@ -139,6 +142,9 @@ def _configure_cmake(self):

self._cmake.definitions["WITH_NUMA"] = False

if self.settings.os == "Macos" and self.settings.arch == "armv8":
self._cmake.definitions["CMAKE_CXX_FLAGS"] = "-march=armv8-a"

self._cmake.configure(build_folder=self._build_subfolder)
return self._cmake

Expand Down

0 comments on commit 9e89453

Please sign in to comment.