We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f663627 commit a444cd3Copy full SHA for a444cd3
Python/perf_jit_trampoline.c
@@ -109,11 +109,17 @@
109
110
/* These constants are defined inside <elf.h>, which we can't use outside of linux. */
111
#if !defined(__linux__)
112
-# define EM_386 3
113
-# define EM_X86_64 62
114
-# define EM_ARM 40
115
-# define EM_AARCH64 183
116
-# define EM_RISCV 243
+# if defined(__i386__) || defined(_M_IX86)
+# define EM_386 3
+# elif defined(__arm__) || defined(_M_ARM)
+# define EM_ARM 40
+# elif defined(__x86_64__) || defined(_M_X64)
117
+# define EM_X86_64 62
118
+# elif defined(__aarch64__)
119
+# define EM_AARCH64 183
120
+# elif defined(__riscv)
121
+# define EM_RISCV 243
122
+# endif
123
#endif
124
125
/* Convenient access to the global trampoline API state */
0 commit comments