forked from wolfSSL/wolfssl
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:
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#ifdef WOLFSSL_USER_SETTINGS
|
||||
#include "wolfssl/wolfcrypt/settings.h"
|
||||
#include "user_settings_asm.h"
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_INTEL_AVX1
|
||||
|
Reference in New Issue
Block a user