aboutsummaryrefslogtreecommitdiff
path: root/test cases/rust
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-10 17:04:27 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-11 07:42:40 -0800
commit91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505 (patch)
tree743cfa490781c24bcf7db5cf1a23b5079bcbc79d /test cases/rust
parent40258cd29e86e9baa35600ada236ce6d7cedc429 (diff)
downloadmeson-91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505.zip
meson-91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505.tar.gz
meson-91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505.tar.bz2
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.
Diffstat (limited to 'test cases/rust')
-rw-r--r--test cases/rust/2 sharedlib/meson.build4
-rw-r--r--test cases/rust/4 polyglot/meson.build4
2 files changed, 8 insertions, 0 deletions
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)