diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-21 13:37:02 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-22 00:09:30 +0300 |
commit | 9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed (patch) | |
tree | 170ed2c3389ed1bb0e4ce7561780b54447ce4a1d /test cases | |
parent | 94ca81b2289aa83af248d5127842e6f5e244e930 (diff) | |
download | meson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.zip meson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.tar.gz meson-9c68d8f3f245d84cc442a6a9f3fbd92ea7b6a3ed.tar.bz2 |
Run Rust shared library test via rustup to get the environment right.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/rust/2 sharedlib/meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test cases/rust/2 sharedlib/meson.build b/test cases/rust/2 sharedlib/meson.build index 8f741aa..42f6e23 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 |