skip fortran dyamiclib tests on Windows

pull/5733/head
Michael Hirsch, Ph.D 5 years ago
parent fe638d63d9
commit 051e5e0e35
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 6
      test cases/fortran/6 dynamic/meson.build

@ -1,9 +1,11 @@
project('dynamic_fortran', 'fortran')
if meson.get_compiler('fortran').get_id() == 'intel-cl'
error('MESON_SKIP_TEST: Windows ifort does not use shared_library in a sane way')
fcid = meson.get_compiler('fortran').get_id()
if fcid == 'intel-cl' or (host_machine.system() == 'windows' and fcid == 'pgi')
error('MESON_SKIP_TEST: non-Gfortran Windows Fortran compilers do not do shared libraries in a Fortran standard way')
# !DEC$ ATTRIBUTES DLLEXPORT must be used!
# https://software.intel.com/en-us/node/535306
# https://www.pgroup.com/resources/docs/19.4/x86/pgi-user-guide/index.htm#lib-dynlnk-bld-dll-fort
endif
dynamic = shared_library('dynamic', 'dynamic.f90')

Loading…
Cancel
Save