]> xenbits.xensource.com Git - unikraft/libs/python3.git/commitdiff
include/pyconfig.h: Add guard for x86 specific macros RELEASE-0.11.0 RELEASE-0.12.0 RELEASE-0.13.0 RELEASE-0.13.1
authorMaria Sfiraiala <maria.sfiraiala@gmail.com>
Thu, 10 Nov 2022 16:26:54 +0000 (18:26 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 18 Nov 2022 10:24:04 +0000 (10:24 +0000)
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 <maria.sfiraiala@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #11

include/pyconfig.h

index 201d7af0097ae1764fc887752de11ddb082be1da..359f314c1c6cfa7d5b8bf85a77c5ddecf22a1479 100644 (file)
 /* #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