From 9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 21 Jun 2019 13:37:02 -0700 Subject: [PATCH] Run Rust shared library test via rustup to get the environment right. --- test cases/rust/2 sharedlib/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test cases/rust/2 sharedlib/meson.build b/test cases/rust/2 sharedlib/meson.build index 8f741aafe..42f6e23e7 100644 --- a/test cases/rust/2 sharedlib/meson.build +++ b/test cases/rust/2 sharedlib/meson.build @@ -2,4 +2,11 @@ project('rust shared library', 'rust') l = shared_library('stuff', 'stuff.rs', install : true) e = executable('prog', 'prog.rs', link_with : l, install : true) -test('linktest', e) + +if build_machine.system() == 'windows' + rustup = find_program('rustup') + test('linktest', rustup, + args: ['run', 'stable', e]) +else + test('linktest', e) +endif