diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-07-28 21:57:38 -0400 |
---|---|---|
committer | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-07-30 15:31:00 -0400 |
commit | d0e78a2534a43a3523e33d516e834a60af3a21ba (patch) | |
tree | 5d28188d0f1c2018f233767e21bffe3c0c82ea0e /mesonbuild/compilers/mixins | |
parent | 7eebb6749a6c059ec9f1f2752a3518e44e9612c9 (diff) | |
download | meson-d0e78a2534a43a3523e33d516e834a60af3a21ba.zip meson-d0e78a2534a43a3523e33d516e834a60af3a21ba.tar.gz meson-d0e78a2534a43a3523e33d516e834a60af3a21ba.tar.bz2 |
default libtype to static to allow windows compilers to not skip
To make Fortran tests useful on Windows, the library_type should default to static,
unless needed to specifically test shared. Shared Fortran libs on Windows for
non-Gfortran compilers is fragile requiring proprietary code syntax.
Diffstat (limited to 'mesonbuild/compilers/mixins')
-rw-r--r-- | mesonbuild/compilers/mixins/pgi.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index 6cb8b45..0613e79 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -66,9 +66,11 @@ class PGICompiler(): def get_std_shared_lib_link_args(self) -> typing.List[str]: # PGI -shared is Linux only. - if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler: - return [] - return ['-shared'] + if self.compiler_type.is_windows_compiler: + return ['-Bdynamic', '-Mmakedll'] + elif not self.compiler_type.is_osx_compiler: + return ['-shared'] + return [] def get_pic_args(self) -> typing.List[str]: # PGI -fPIC is Linux only. |