Enable OpenMP compiler option for MSVC

Enable OpenMP compiler option for MSVC to support Multi-Threading for nlp.pipe()
This commit is contained in:
SJ 2016-04-09 15:22:17 -07:00
parent 80bea62842
commit 91b3f1c12f

View File

@ -72,7 +72,7 @@ MOD_NAMES = [
# 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
compile_options = {
'msvc': ['/Ox', '/EHsc'],
'msvc': ['/Ox', '/EHsc', '/openmp'],
'mingw32' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function'],
'other' : ['-O3', '-Wno-strict-prototypes', '-Wno-unused-function']
}