From 91b3f1c12ffed962aff185441e61a2c2638a5127 Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 9 Apr 2016 15:22:17 -0700 Subject: [PATCH] Enable OpenMP compiler option for MSVC Enable OpenMP compiler option for MSVC to support Multi-Threading for nlp.pipe() --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 572bc0cdd..591e50bbc 100644 --- a/setup.py +++ b/setup.py @@ -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'] }