d: Newer GDC versions can compile shared libraries

Actually, GDC supports shared libraries since version 6.2, but on Debian
there are still issues with that version due to the standard library not
being compiled with PIC.
Therefore, we make a very conservative assumption here and only enable
the tests for GDC >= 7.0
pull/2266/head
Matthias Klumpp 8 years ago committed by Jussi Pakkanen
parent 36657e3a30
commit 5f0a91baa5
  1. 7
      test cases/d/3 shared library/meson.build
  2. 7
      test cases/d/4 library versions/meson.build
  3. 7
      test cases/d/7 multilib/meson.build

@ -1,7 +1,10 @@
project('D Shared Library', 'd')
if meson.get_compiler('d').get_id() == 'gcc'
error('MESON_SKIP_TEST: GDC can not build shared libraries')
dc = meson.get_compiler('d')
if dc.get_id() == 'gcc'
if dc.version().version_compare('< 7')
error('MESON_SKIP_TEST: GDC < 7.0 can not build shared libraries')
endif
endif
ldyn = shared_library('stuff', 'libstuff.d', install : true)

@ -1,7 +1,10 @@
project('D library versions', 'd')
if meson.get_compiler('d').get_id() == 'gcc'
error('MESON_SKIP_TEST: GDC can not build shared libraries')
dc = meson.get_compiler('d')
if dc.get_id() == 'gcc'
if dc.version().version_compare('< 7')
error('MESON_SKIP_TEST: GDC < 7.0 can not build shared libraries')
endif
endif
shared_library('some', 'lib.d',

@ -1,7 +1,10 @@
project('D Multiple Versioned Shared Libraries', 'd')
if meson.get_compiler('d').get_id() == 'gcc'
error('MESON_SKIP_TEST: GDC can not build shared libraries (2016)')
dc = meson.get_compiler('d')
if dc.get_id() == 'gcc'
if dc.version().version_compare('< 7')
error('MESON_SKIP_TEST: GDC < 7.0 can not build shared libraries')
endif
endif
ldyn1 = shared_library('say1',

Loading…
Cancel
Save