Skip to content

Commit

Permalink
Debug which pmemaccess branch we use
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Mar 12, 2024
1 parent 0a68791 commit f2b5967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel")
# Force no pointer cast memory access
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_PTR_ACCESS=0")
# Test old implementation
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFLATCC_STRICT=0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFLATCC_STRICT=1")

# Make sure we know which branch of pmemaccess.h we use, this will fail build.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_ACCESS_DEBUG=1")

elseif (MSVC) # using STREQUAL here conflicts with string interpretation changes in CMake
message(STATUS "Setting MSVC C compiler options")
Expand Down

0 comments on commit f2b5967

Please sign in to comment.