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/distutils/ccompiler.py | |
| 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/distutils/ccompiler.py')
| -rw-r--r-- | numpy/distutils/ccompiler.py | 9 |
1 files changed, 8 insertions, 1 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') |
