aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py3
1 files changed, 2 insertions, 1 deletions
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