Skip to content

Commit

Permalink
Use defaults for ICC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Mar 12, 2024
1 parent 0da94bf commit fdc8308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,15 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -wd169 -wd279")

# = 1 (default) : Use new strict flatcc_accessor implementation
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFLATCC_STRICT=1")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFLATCC_STRICT=1")

# = 1: Force pointer cast memory access
# (only effective when STRICT=1)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_PTR_ACCESS=1")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_PTR_ACCESS=0")

# = 1 : DebugMake sure we know which branch of pmemaccess.h we use, this will fail build.
# (only effective when STRICT=1)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_ACCESS_DEBUG=0")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_ACCESS_DEBUG=0")

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 fdc8308

Please sign in to comment.