blob: 1eb42b3e5ad638f4b11d4dafee2e688cdd6994ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--- ceph-13.2.5.orig/src/rocksdb/CMakeLists.txt 2019-03-20 11:39:25.065954652 -0700
+++ ceph-13.2.5/src/rocksdb/CMakeLists.txt 2019-03-20 13:18:01.548085828 -0700
@@ -286,18 +286,24 @@
endif()
endif()
-find_package(NUMA)
-if(NUMA_FOUND)
- add_definitions(-DNUMA)
- include_directories(${NUMA_INCLUDE_DIR})
- list(APPEND THIRDPARTY_LIBS ${NUMA_LIBRARIES})
+option(WITH_NUMA "build with UBSAN" OFF)
+if(WITH_NUMA)
+ find_package(NUMA)
+ if(NUMA_FOUND)
+ add_definitions(-DNUMA)
+ include_directories(${NUMA_INCLUDE_DIR})
+ list(APPEND THIRDPARTY_LIBS ${NUMA_LIBRARIES})
+ endif()
endif()
-find_package(TBB)
-if(TBB_FOUND)
- add_definitions(-DTBB)
- include_directories(${TBB_INCLUDE_DIR})
- list(APPEND THIRDPARTY_LIBS ${TBB_LIBRARIES})
+option(WITH_TBB "build with UBSAN" OFF)
+if(WITH_TBB)
+ find_package(TBB)
+ if(TBB_FOUND)
+ add_definitions(-DTBB)
+ include_directories(${TBB_INCLUDE_DIR})
+ list(APPEND THIRDPARTY_LIBS ${TBB_LIBRARIES})
+ endif()
endif()
# Used to run CI build and tests so we can run faster
|