Skip to content

Commit

Permalink
Align data to ABI standard, rather than to the cacheline
Browse files Browse the repository at this point in the history
This is a shot in the dark -- it might or might not help with the
stability of the Lua module.
  • Loading branch information
lpereira committed Mar 14, 2017
1 parent c1aed00 commit 03df1bc
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 @@ -93,9 +93,9 @@ else ()
endif ()

if (${CMAKE_BUILD_TYPE} MATCHES "Rel")
check_c_compiler_flag(-malign-data=cacheline HAS_MALIGN_DATA_CACHELINE)
if (HAS_MALIGN_DATA_CACHELINE)
set(C_FLAGS_REL "${C_FLAGS_REL} -malign-data=cacheline")
check_c_compiler_flag(-malign-data=abi HAS_MALIGN_DATA_ABI)
if (HAS_MALIGN_DATA_ABI)
set(C_FLAGS_REL "${C_FLAGS_REL} -malign-data=abi")
endif ()

check_c_compiler_flag(-fno-asynchronous-unwind-tables HAS_ASYNC_UNWIND_TABLES)
Expand Down

0 comments on commit 03df1bc

Please sign in to comment.