From: Maria Sfiraiala Date: Thu, 10 Nov 2022 16:26:54 +0000 (+0200) Subject: include/pyconfig.h: Add guard for x86 specific macros X-Git-Tag: RELEASE-0.11.0^0 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=450c3bd82342b4453fa323b283a411871e5e888e;p=unikraft%2Flibs%2Fpython3.git 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 --- 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