meson/test cases/fortran/13 coarray/meson.build

19 lines
489 B
Meson
Raw Normal View History

2019-06-21 13:24:54 +08:00
project('Fortran coarray', 'fortran',
meson_version: '>=0.50')
2019-02-14 03:09:18 +08:00
fc = meson.get_compiler('fortran')
fcid = fc.get_id()
2019-07-29 10:16:04 +08:00
if ['pgi', 'flang'].contains(fcid)
error('MESON_SKIP_TEST: At least through PGI 19.4 and Flang 7.1 do not support Fortran Coarrays.')
endif
2019-02-14 03:09:18 +08:00
# coarray is required because single-image fallback is an intrinsic feature
coarray = dependency('coarray', required : true)
exe = executable('hello', 'main.f90',
dependencies : coarray)
test('Coarray hello world', exe)