From 461f3af294331d36415673f1bf69c54658d13017 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 7 Apr 2018 04:15:11 -0400 Subject: Explicitly check for OpenMP headers. --- mesonbuild/compilers/compilers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index a383095..37326d8 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1282,7 +1282,8 @@ class ClangCompiler: elif version_compare(self.version, '>=3.7.0'): return ['-fopenmp=libomp'] else: - return None + # Shouldn't work, but it'll be checked explicitly in the OpenMP dependency. + return [] # Tested on linux for ICC 14.0.3, 15.0.6, 16.0.4, 17.0.1 -- cgit v1.1