Run Rust shared library test via rustup to get the environment right.

pull/5537/head
Jussi Pakkanen 6 years ago
parent 94ca81b228
commit 9c68d8f3f2
  1. 9
      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

Loading…
Cancel
Save