Skip to content

Commit 6ed21b4

Browse files
committed
BLD: Remove -march=native compiler option.
- This option ended up causing problems in the CI builds of the conda distribution, resulting in faulty builds that crash at import of the package. Because this compiler option is not all that important, then it is safe to just remove it.
1 parent d2db4f8 commit 6ed21b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
if platform.system() == 'Windows':
2525
compile_args = ['/O2']
2626
else:
27-
compile_args = ['-O2', '-std=c99', '-march=native']
28-
if os.getenv("BUILD_WHEEL", None):
29-
compile_args.pop()
27+
compile_args = ['-O2', '-std=c99']
3028

3129
# https://numpy.org/devdocs/reference/random/examples/cython/setup.py.html
3230
include_path = np.get_include()

0 commit comments

Comments
 (0)