diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2018-04-07 04:24:42 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2018-04-17 02:04:39 -0400 |
commit | 2c8ff7c0279155c6fff3e82a3e37fc08814acd6f (patch) | |
tree | 9da3684d0279e8dcdfb5e58c044d0c8eea2d233e | |
parent | 461f3af294331d36415673f1bf69c54658d13017 (diff) | |
download | meson-2c8ff7c0279155c6fff3e82a3e37fc08814acd6f.zip meson-2c8ff7c0279155c6fff3e82a3e37fc08814acd6f.tar.gz meson-2c8ff7c0279155c6fff3e82a3e37fc08814acd6f.tar.bz2 |
Skip OpenMP tests on old compilers.
-rw-r--r-- | test cases/common/190 openmp/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/common/190 openmp/meson.build b/test cases/common/190 openmp/meson.build index 0455955..a05ca59 100644 --- a/test cases/common/190 openmp/meson.build +++ b/test cases/common/190 openmp/meson.build @@ -1,5 +1,19 @@ project('openmp', 'c', 'cpp') +cc = meson.get_compiler('c') +if cc.get_id() == 'gcc' and cc.version().version_compare('<4.2.0') + error('MESON_SKIP_TEST gcc is too old to support OpenMP.') +endif +if cc.get_id() == 'clang' and cc.version().version_compare('<3.7.0') + error('MESON_SKIP_TEST clang is too old to support OpenMP.') +endif +if cc.get_id() == 'msvc' and cc.version().version_compare('<17') + error('MESON_SKIP_TEST msvc is too old to support OpenMP.') +endif +if host_machine.system() == 'darwin' + error('MESON_SKIP_TEST macOS does not support OpenMP.') +endif + openmp = dependency('openmp') exec = executable('exec', |