]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: build portable rocksdb
authorKefu Chai <kchai@redhat.com>
Wed, 6 Sep 2017 02:46:13 +0000 (10:46 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Sep 2017 09:16:28 +0000 (17:16 +0800)
commit652bc5e8328873c67c6e5f405fd6a48c53ae0a80
tree4383de2b2bb7d5555b868b40f38975e6790649ff
parent9d73a7121fdb1ae87cb1aa6f7d9d7a13f329ae68
cmake: build portable rocksdb

* so rocksdb is not built with -march=native, because
  - this is not portable
  - -march=native is not supported by older version of GCC on aarch64.
* and drop the sse42 specific settings for rocksdb. since rocksdb uses
  "target" attribute to build sse42 optimized crc32, as long as the
  compiler on building host is able to emit sse42 instructions.
  see https://github.com/facebook/rocksdb/pull/2807

Fixes: http://tracker.ceph.com/issues/20529
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt