Skip to content

Commit 0be18b0

Browse files
the-horodcbaker
authored andcommitted
tests: support DC being more than plain dmd or ldc2
Dub is very thorough about what it encodes in a build id even collecting the compiler path. Therefore, if dub is not provided the exact same compiler path that meson got during setup, the dependency would not be found and the test would fail. Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent 8689c94 commit 0be18b0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test cases/d/14 dub with deps/meson.build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ endif
1212

1313
if meson.get_compiler('d').get_id() == 'gcc'
1414
error('MESON_SKIP_TEST: can\'t build dependencies with GDC')
15-
elif meson.get_compiler('d').get_id() == 'llvm'
16-
dc = 'ldc2'
17-
elif meson.get_compiler('d').get_id() == 'dmd'
18-
dc = 'dmd'
1915
endif
2016

17+
dc = meson.get_compiler('d').cmd_array()[0]
2118
arch = host_machine.cpu_family()
2219

2320
if host_machine.system() == 'windows'

0 commit comments

Comments
 (0)