Skip to content

Commit

Permalink
cmake: add mem alignment check
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed May 24, 2022
1 parent daba37e commit 751b893
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ endif()

if(CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wshorten-64-to-32)
# Ensure struct mem is aligned (used as fat pointer)
set_source_files_properties(src/mem/mem.c PROPERTIES COMPILE_FLAGS -Wpadded)
endif()


Expand Down

0 comments on commit 751b893

Please sign in to comment.