Generate an assembler-safe user_settings.h in configure.ac and CMakeLists.txt.

For user_settings.h builds, .S assembly files need to include user_settings.h
in order to get the defines used by the build. However, a user_settings.h may
contain code only understood by a C compiler and not the assembler (e.g. a
typedef). This commit makes it so our autotools and CMake builds produce a file
user_settings_asm.h when doing a user_settings.h build. This generated header
contains only the preprocessor directives from the user_settings.h. As a result,
it can be safely included by our assembly code files.
This commit is contained in:
Hayden Roche
2022-09-28 08:16:46 -07:00
parent 8101800cd9
commit 3bcd4b45df
13 changed files with 76 additions and 9 deletions

View File

@@ -20,7 +20,7 @@
*/
#ifdef WOLFSSL_USER_SETTINGS
#include "wolfssl/wolfcrypt/settings.h"
#include "user_settings_asm.h"
#endif
#ifndef HAVE_INTEL_AVX1