diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2023-04-10 12:12:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 12:12:28 -0400 |
commit | 7715f50ab5b122d8b516caca387a176c2793a749 (patch) | |
tree | c4e4fb37c694ac941fcc0820afe99de491c5a9a3 /numpy | |
parent | 5786d14a885a0d2bd6a6f31b3b2e5cff3c484b85 (diff) | |
parent | 340149c538aa8234fcc778315bee149335b50cb7 (diff) | |
download | numpy-7715f50ab5b122d8b516caca387a176c2793a749.tar.gz |
Merge pull request #23559 from andyfaff/gh23538
BLD: add static to std_c_flags program. Move macosx_arm64 wheel build to cirrus. Add regular macosx_arm64 job (closes #23538, #21765)
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/ccompiler.py | 9 | ||||
-rwxr-xr-x | numpy/f2py/crackfortran.py | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 0e018a268..66124df94 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -1,6 +1,7 @@ import os import re import sys +import platform import shlex import time import subprocess @@ -394,8 +395,14 @@ def CCompiler_customize_cmd(self, cmd, ignore=()): log.info('customize %s using %s' % (self.__class__.__name__, cmd.__class__.__name__)) - if hasattr(self, 'compiler') and 'clang' in self.compiler[0]: + if ( + hasattr(self, 'compiler') and + 'clang' in self.compiler[0] and + not (platform.machine() == 'arm64' and sys.platform == 'darwin') + ): # clang defaults to a non-strict floating error point model. + # However, '-ftrapping-math' is not currently supported (2023-04-08) + # for macosx_arm64. # Since NumPy and most Python libs give warnings for these, override: self.compiler.append('-ftrapping-math') self.compiler_so.append('-ftrapping-math') diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index 36a913047..d2dbb56af 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2393,7 +2393,7 @@ def _selected_real_kind_func(p, r=0, radix=0): if p < 16: return 8 machine = platform.machine().lower() - if machine.startswith(('aarch64', 'power', 'ppc', 'riscv', 's390x', 'sparc')): + if machine.startswith(('aarch64', 'power', 'ppc', 'riscv', 's390x', 'sparc', 'arm64')): if p <= 20: return 16 else: |