diff options
author | Chris Robinson <[email protected]> | 2023-06-01 17:07:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-06-01 17:07:25 -0700 |
commit | 650a14631226b1b9423c961b1f53b5db673cc88f (patch) | |
tree | 2d8a42fd0ad4421d69f71c31e8e547f009fbf0b7 /CMakeLists.txt | |
parent | a91ac01004332d59370c5d6210e1605cb8f708c6 (diff) |
Define FORCE_ALIGN in config.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ae21a83e..e4d3776d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -470,6 +470,7 @@ if(ALSOFT_REQUIRE_NEON AND NOT HAVE_NEON) endif() +set(ALSOFT_FORCE_ALIGN ) set(SSE_FLAGS ) set(FPMATH_SET "0") if(CMAKE_SIZEOF_VOID_P MATCHES "4" AND HAVE_SSE2) @@ -494,6 +495,7 @@ if(CMAKE_SIZEOF_VOID_P MATCHES "4" AND HAVE_SSE2) # OSs don't guarantee this on 32-bit, so externally-callable # functions need to ensure an aligned stack. set(EXPORT_DECL "${EXPORT_DECL}__attribute__((force_align_arg_pointer))") + set(ALSOFT_FORCE_ALIGN "__attribute__((force_align_arg_pointer))") endif() endif() endif() |