* Don't expect openmp in options

This commit is contained in:
Matthew Honnibal 2016-02-02 13:50:25 +01:00
parent 9e9d4c8706
commit c9aa91041d

View File

@ -71,9 +71,9 @@ if sys.version_info[:2] < (2, 7) or (3, 0) <= sys.version_info[0:2] < (3, 4):
# By subclassing build_extensions we have the actual compiler that will be used which is really known only after finalize_options # By subclassing build_extensions we have the actual compiler that will be used which is really known only after finalize_options
# http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used # http://stackoverflow.com/questions/724664/python-distutils-how-to-get-a-compiler-that-is-going-to-be-used
compile_options = {'msvc' : ['/Ox', '/EHsc'], compile_options = {'msvc' : ['/Ox', '/EHsc'],
'other' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function', '-fopenmp']} 'other' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function']}
link_options = {'msvc' : [], link_options = {'msvc' : [],
'other' : ['-fopenmp']} 'other' : []}
if sys.platform.startswith('darwin'): if sys.platform.startswith('darwin'):
compile_options['other'].append('-mmacosx-version-min=10.8') compile_options['other'].append('-mmacosx-version-min=10.8')