Skip to content

Commit

Permalink
disable long double on aarch64-darwin
Browse files Browse the repository at this point in the history
Apple Silicon does not have support for long doubles, so they need to
be disabled.
  • Loading branch information
Feyorsh committed Mar 17, 2024
1 parent c98229b commit cece9c9
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 @@ -195,7 +196,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 cece9c9

Please sign in to comment.