From 91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Nov 2020 17:04:27 -0800 Subject: tests/rust: dynamic linking doesn't work on darwin This is a bug, and needs to be fixed, but in the short term testing other rust functionality on darwin is an improvement over testing none. --- test cases/rust/2 sharedlib/meson.build | 4 ++++ test cases/rust/4 polyglot/meson.build | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'test cases/rust') diff --git a/test cases/rust/2 sharedlib/meson.build b/test cases/rust/2 sharedlib/meson.build index 42f6e23..aac2968 100644 --- a/test cases/rust/2 sharedlib/meson.build +++ b/test cases/rust/2 sharedlib/meson.build @@ -1,5 +1,9 @@ project('rust shared library', 'rust') +if host_machine.system() == 'darwin' + error('MESON_SKIP_TEST: doesnt work right on macos, please fix!') +endif + l = shared_library('stuff', 'stuff.rs', install : true) e = executable('prog', 'prog.rs', link_with : l, install : true) diff --git a/test cases/rust/4 polyglot/meson.build b/test cases/rust/4 polyglot/meson.build index b7eef57..4955516 100644 --- a/test cases/rust/4 polyglot/meson.build +++ b/test cases/rust/4 polyglot/meson.build @@ -1,5 +1,9 @@ project('rust and c polyglot executable', 'c', 'rust') +if host_machine.system() == 'darwin' + error('MESON_SKIP_TEST: doesnt work right on macos, please fix!') +endif + l = library('stuff', 'stuff.rs', rust_crate_type: 'cdylib', install : true) e = executable('prog', 'prog.c', link_with : l, install : true) test('polyglottest', e) -- cgit v1.1