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 b86ce3a commit f7cbac5Copy full SHA for f7cbac5
1 file changed
Tools/configure/conf_math.py
@@ -94,11 +94,16 @@ def _define_float_little():
94
95
96
def _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
- )
+ # Fallback for platforms where float endianness detection fails.
+ # Modern ARM (including iOS) uses little-endian IEEE 754 doubles.
+ if pyconf.fnmatch_any(pyconf.host_cpu, ["arm*", "aarch64"]):
+ _define_float_little()
+ 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
+ )
107
108
109
def check_gcc_asm_and_floating_point(v):
0 commit comments