10000 gh-89640: Restore configure error message on failure to detect float … · python/cpython@8d5b726 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d5b726

Browse files
committed
gh-89640: Restore configure error message on failure to detect float word order
Before #126387, if we didn't detect float word order we'd raise the following configure error: ``` Unknown float word ordering. You need to manually preset ax_cv_c_float_words_bigendian=no (or yes) according to your system. ``` This puts it back (except for host_cpu arm or wasm).
1 parent 9ecd8f7 commit 8d5b726

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

configure

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5920,7 +5920,15 @@ AX_C_FLOAT_WORDS_BIGENDIAN(
59205920
stored in ARM mixed-endian order (byte order 45670123)])],
59215921
[wasm*], [AC_DEFINE([DOUBLE_IS_LITTLE_ENDIAN_IEEE754], [1],
59225922
[Define if C doubles are 64-bit IEEE 754 binary format,
5923-
stored with the least significant byte first])])])
5923+
stored with the least significant byte first])],
5924+
AC_MSG_ERROR[([
5925+
5926+
Unknown float word ordering. You need to manually preset
5927+
ax_cv_c_float_words_bigendian=no (or yes) according to your system.
5928+
5929+
])]
5930+
)]
5931+
)
59245932

59255933
# The short float repr introduced in Python 3.1 requires the
59265934
# correctly-rounded string <-> double conversion functions from

0 commit comments

Comments
 (0)
0