Commit dfdfe69a authored by scoder's avatar scoder

Merge pull request #146 from cgohlke/patch-4

Add '/openmp' flag when compiling Cpp code with msvc compilers
parents b614aa32 31aa674e
......@@ -124,7 +124,9 @@ def get_openmp_compiler_flags(language):
cc = sysconfig.get_config_var('CC')
if not cc:
return None # Windows?
if sys.platform == 'win32':
return '/openmp', ''
return None
# For some reason, cc can be e.g. 'gcc -pthread'
cc = cc.split()[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment