Skip to content

Commit

Permalink
Merge pull request #2586 from denizzzka/meson_2
Browse files Browse the repository at this point in the history
Meson: fixes using vibe.d as subproject
  • Loading branch information
Geod24 authored Aug 13, 2021
2 parents c6b32ed + bff3fb1 commit 35b097c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,21 @@ if ssl_dep.version().version_compare('>=1.1')
flag_new_openssl_dmd = '-version=VibeUseOpenSSL11'
endif

if meson.get_compiler('d').get_id() == 'llvm'
add_global_arguments(['-d-version=VibeLibeventDriver',
'-d-version=Have_openssl',
'-d-version=Have_diet_ng',
'-d-version=Have_stdx_allocator',
flag_new_openssl_ldc], language : 'd')
endif
if meson.get_compiler('d').get_id() == 'dmd'
add_global_arguments(['-version=VibeLibeventDriver',
'-version=Have_openssl',
'-version=Have_diet_ng',
'-version=Have_stdx_allocator',
flag_new_openssl_dmd], language : 'd')
if meson.is_subproject() == false
if meson.get_compiler('d').get_id() == 'llvm'
add_global_arguments(['-d-version=Have_openssl',
'-d-version=Have_diet_ng',
'-d-version=Have_stdx_allocator',
flag_new_openssl_ldc], language : 'd')
endif
if meson.get_compiler('d').get_id() == 'dmd'
add_global_arguments(['-version=Have_openssl',
'-version=Have_diet_ng',
'-version=Have_stdx_allocator',
flag_new_openssl_dmd], language : 'd')
endif
endif

if meson.get_compiler('d').get_id() == 'gnu'
error('Vibe.d can not be compiled with GDC at time (2016). Sorry.')
endif
Expand Down

0 comments on commit 35b097c

Please sign in to comment.