Skip to content

Commit 7cc674d

Browse files
author
Tony Kuo
committed
no march=native if conda
1 parent f069830 commit 7cc674d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ class BuildExt(build_ext):
7474
"""A custom build extension for adding compiler-specific options."""
7575
c_opts = {
7676
'msvc': ['/EHsc', '/openmp', '/O2'],
77-
'unix': ['-O3', '-march=native'], # , '-w'
77+
#'unix': ['-O3', '-march=native'], # , '-w'
78+
'unix': ['-O3'], # , '-w'
7879
}
80+
if "conda" not in sys.version.lower():
81+
c_opts['unix'].append("-march=native")
7982
link_opts = {
8083
'unix': [],
8184
'msvc': [],

0 commit comments

Comments
 (0)