]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: enable RTTI for both debug and release RocksDB builds 22299/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 28 May 2018 20:00:42 +0000 (23:00 +0300)
committerKefu Chai <kchai@redhat.com>
Tue, 29 May 2018 13:59:19 +0000 (21:59 +0800)
Overwise ceph build in Release mode is failing.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 83841bf3de4f664df1c5b1b7997861acf2ede767)

cmake/modules/BuildRocksDB.cmake

index 71a1e2a1a2c6e6ce16d6a7ffc20f6ad9e4ef4d07..1c1a257b2e3028aad98853540aca57d117c2f28d 100644 (file)
@@ -20,6 +20,7 @@ function(do_build_rocksdb)
   list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_AR=${CMAKE_AR})
   list(APPEND ROCKSDB_CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
   list(APPEND ROCKSDB_CMAKE_ARGS -DFAIL_ON_WARNINGS=OFF)
+  list(APPEND ROCKSDB_CMAKE_ARGS -DUSE_RTTI=1)
 
   # we use an external project and copy the sources to bin directory to ensure
   # that object files are built outside of the source tree.