Skip to content

Commit

Permalink
Merge pull request #270 from Feyorsh/aarch64-darwin-ldouble
Browse files Browse the repository at this point in the history
disable long double on aarch64-darwin
  • Loading branch information
malb authored Mar 18, 2024
2 parents b222ce6 + cece9c9 commit f65a031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import os
import platform
import subprocess
import sys
import io
Expand Down Expand Up @@ -196,7 +197,7 @@ def _get_have_long_double(self):
# Ideally this would check the fplll headers explicitly for the
# the FPLLL_WITH_LONG_DOUBLE define, but for now it suffices to
# say that long double support is disabled on Cygwin
return not sys.platform.startswith("cygwin")
return not (sys.platform.startswith("cygwin") or ("macOS" in (_ := platform.platform()) and "arm" in _))


# EXTENSIONS
Expand Down

0 comments on commit f65a031

Please sign in to comment.