Skip to content

Commit ca166a0

Browse files
committed
Fix detection of whether long double is the same as double
One change in PR 305 was not quite right: it changed a check for whether `$(ARCH)` is `aarch64` to a check for whether it's `aarch64 riscv64`, which can never be true. It was a non-functional change on RISC-V (since it can't be true) but broke AArch64, at least for FreeBSD. Notably, changing the check to what I assume was intended, i.e. `aarch64` or `riscv64`, breaks RISC-V. So this commit instead reverts this one change in 305.
1 parent 296a5e4 commit ca166a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Make.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ ifneq ($(filter $(ARCH),i387 amd64),)
171171
# linux x86_64, for instance, `long double` is 80 bits wide, whereas on macOS aarch64,
172172
# `long double` is the same as `double`.
173173
LONG_DOUBLE_NOT_DOUBLE := 1
174-
else ifeq ($(ARCH), aarch64 riscv64)
174+
else ifeq ($(ARCH), aarch64)
175175
ifeq ($(filter $(OS),Darwin WINNT),)
176176
LONG_DOUBLE_NOT_DOUBLE := 1
177177
endif

0 commit comments

Comments
 (0)