From 450c3bd82342b4453fa323b283a411871e5e888e Mon Sep 17 00:00:00 2001 From: Maria Sfiraiala Date: Thu, 10 Nov 2022 18:26:54 +0200 Subject: [PATCH] include/pyconfig.h: Add guard for x86 specific macros HAVE_GCC_ASM_FOR_X64 and HAVE_GCC_ASM_FOR_X87 macros break the build for app-python3 on AArch64. Therefore, this commit adds an architecture specific guard for each one of them, as on x86 they behave just fine. Github-Fixes: #10 Signed-off-by: Maria Sfiraiala Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #11 --- include/pyconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/pyconfig.h b/include/pyconfig.h index 201d7af..359f314 100644 --- a/include/pyconfig.h +++ b/include/pyconfig.h @@ -390,11 +390,17 @@ /* #undef HAVE_GCC_ASM_FOR_MC68881 */ /* Define if we can use x64 gcc inline assembler */ + +#if defined(__x86_64__) #define HAVE_GCC_ASM_FOR_X64 1 +#endif /* Define if we can use gcc inline assembler to get and set x87 control word */ + +#if defined(__x86_64__) #define HAVE_GCC_ASM_FOR_X87 1 +#endif /* Define if your compiler provides __uint128_t */ #define HAVE_GCC_UINT128_T 1 -- 2.39.5