Skip to content

Commit

Permalink
Set correct flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelfj committed Mar 11, 2024
1 parent f1ab3f6 commit 16e2fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ elseif (CMAKE_C_COMPILER_ID STREQUAL "Intel")
# We have these everywhere in flatcc generated code.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -wd169 -wd279")
# Force pointer cast memory access
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_ACCESS_DEBUG=1")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPORTABLE_MEM_PTR_ACCESS=1")
elseif (MSVC) # using STREQUAL here conflicts with string interpretation changes in CMake
message(STATUS "Setting MSVC C compiler options")
# -DFLATCC_PORTABLE also required, but set earlier
Expand Down

0 comments on commit 16e2fad

Please sign in to comment.