Skip to content

Commit 07e04ec

Browse files
committed
CTL: Add a CTL functionality to the UMF
This commit introduces sources and compilation of the CTL. The CTL sources are copied from: https://github.com/pmem/pmdk/tree/master/src/common Signed-off-by: Krzysztof Filipek <[email protected]>
1 parent 19bd9fd commit 07e04ec

File tree

11 files changed

+930
-2
lines changed

11 files changed

+930
-2
lines changed

cmake/helpers.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ function(add_umf_target_compile_options name)
232232
PRIVATE -fPIC
233233
-Wall
234234
-Wextra
235-
-Wpedantic
236235
-Wformat-security
237-
-Wcast-qual
236+
-Wno-cast-qual
238237
$<$<CXX_COMPILER_ID:GNU>:-fdiagnostics-color=auto>)
239238
if(CMAKE_BUILD_TYPE STREQUAL "Release")
240239
target_compile_definitions(${name} PRIVATE -D_FORTIFY_SOURCE=2)

src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ add_subdirectory(coarse)
2626

2727
set(UMF_LIBS $<BUILD_INTERFACE:umf_utils> $<BUILD_INTERFACE:coarse>)
2828

29+
set(CTL_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ctl/ctl.c
30+
${CMAKE_CURRENT_SOURCE_DIR}/ctl/ctl_debug.c)
31+
2932
if(LINUX)
3033
set(BA_SOURCES ${BA_SOURCES}
3134
${CMAKE_CURRENT_SOURCE_DIR}/base_alloc/base_alloc_linux.c)
@@ -45,6 +48,7 @@ set(HWLOC_DEPENDENT_SOURCES topology.c)
4548

4649
set(UMF_SOURCES
4750
${BA_SOURCES}
51+
${CTL_SOURCES}
4852
libumf.c
4953
ipc.c
5054
ipc_cache.c

0 commit comments

Comments
 (0)