Skip to content

Commit

Permalink
Skip OpenMP tests on old compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Apr 17, 2018
1 parent 461f3af commit 2c8ff7c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test cases/common/190 openmp/meson.build
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 2c8ff7c

Please sign in to comment.