diff --git a/runtests.py b/runtests.py index 657d15176aa2395d997530eee364cf574de7004a..a0fd3ac9a6eacadc2a4e3e690bdce1906a8f5898 100644 --- a/runtests.py +++ b/runtests.py @@ -109,6 +109,7 @@ def get_openmp_compiler_flags(language): cc = sysconfig.get_config_var('CXX') else: cc = sysconfig.get_config_var('CC') + if not cc: return None # Windows? # For some reason, cc can be e.g. 'gcc -pthread' cc = cc.split()[0]