Skip OpenMP tests on old compilers.

pull/1852/head
Elliott Sales de Andrade 7 years ago
parent 461f3af294
commit 2c8ff7c027
  1. 14
      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',

Loading…
Cancel
Save