File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,16 @@ def _define_float_little():
9494
9595
9696def _define_float_unknown ():
97- pyconf .error (
98- "Unknown float word ordering. You need to manually "
99- "preset ax_cv_c_float_words_bigendian=no (or yes) "
100- "according to your system."
101- )
97+ # Fallback for platforms where float endianness detection fails.
98+ # Modern ARM (including iOS) uses little-endian IEEE 754 doubles.
99+ if pyconf .fnmatch_any (pyconf .host_cpu , ["arm*" , "aarch64" ]):
100+ _define_float_little ()
101+ else :
102+ pyconf .error (
103+ "Unknown float word ordering. You need to manually "
104+ "preset ax_cv_c_float_words_bigendian=no (or yes) "
105+ "according to your system."
106+ )
102107
103108
104109def check_gcc_asm_and_floating_point (v ):
You can’t perform that action at this time.
0 commit comments