diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2020-11-10 17:04:27 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2020-11-11 07:42:40 -0800 |
| commit | 91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505 (patch) | |
| tree | 743cfa490781c24bcf7db5cf1a23b5079bcbc79d | |
| parent | 40258cd29e86e9baa35600ada236ce6d7cedc429 (diff) | |
| download | meson-91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505.tar.gz | |
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.
| -rw-r--r-- | test cases/rust/2 sharedlib/meson.build | 4 | ||||
| -rw-r--r-- | test cases/rust/4 polyglot/meson.build | 4 |
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 42f6e23e7..aac296810 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 b7eef57d9..4955516fd 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) |
