Commit 31aa674e authored by cgohlke's avatar cgohlke

Add '/openmp' flag when compiling Cpp code with msvc compilers

parent b614aa32
......@@ -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