Skip to content

Commit f663af4

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 888ab64 commit f663af4

File tree

9 files changed

+673
-505
lines changed

9 files changed

+673
-505
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ 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+
2931
if(LINUX)
3032
set(BA_SOURCES ${BA_SOURCES}
3133
${CMAKE_CURRENT_SOURCE_DIR}/base_alloc/base_alloc_linux.c)
@@ -45,6 +47,7 @@ set(HWLOC_DEPENDENT_SOURCES topology.c)
4547

4648
set(UMF_SOURCES
4749
${BA_SOURCES}
50+
${CTL_SOURCES}
4851
libumf.c
4952
ipc.c
5053
ipc_cache.c

0 commit comments

Comments
 (0)