aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-28 23:17:43 -0400
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-30 15:33:10 -0400
commit051e5e0e3512319f096c85a09e86b791dd6b8566 (patch)
tree7402694197ea971128d36808ce67f77269d75799
parentfe638d63d9bfb60cf3e778eff42bf3886e6e2565 (diff)
downloadmeson-051e5e0e3512319f096c85a09e86b791dd6b8566.zip
meson-051e5e0e3512319f096c85a09e86b791dd6b8566.tar.gz
meson-051e5e0e3512319f096c85a09e86b791dd6b8566.tar.bz2
skip fortran dyamiclib tests on Windows
-rw-r--r--test cases/fortran/6 dynamic/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/test cases/fortran/6 dynamic/meson.build b/test cases/fortran/6 dynamic/meson.build
index 244a38b..413223b 100644
--- a/test cases/fortran/6 dynamic/meson.build
+++ b/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')