aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam C. Foltzer <acfoltzer@galois.com>2018-02-02 11:31:47 -0800
committerAdam C. Foltzer <acfoltzer@galois.com>2018-02-02 11:31:47 -0800
commit281294286e1126ef0945ddedd4f577b01f28bc8b (patch)
treee4324c58ddef1982d96892770424b7a3a289d984
parent1d81efb03d5efee5899db01737880b1b3969e1fc (diff)
downloadmeson-281294286e1126ef0945ddedd4f577b01f28bc8b.zip
meson-281294286e1126ef0945ddedd4f577b01f28bc8b.tar.gz
meson-281294286e1126ef0945ddedd4f577b01f28bc8b.tar.bz2
Fix Rust shared polyglot test case for cross-compilation
The crate-type in this case should have been `cdylib` since it's linking via C, rather than the default `dylib` that is meant for linking via `rustc`.
-rw-r--r--test cases/rust/4 polyglot/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/rust/4 polyglot/meson.build b/test cases/rust/4 polyglot/meson.build
index a20d766..b7eef57 100644
--- a/test cases/rust/4 polyglot/meson.build
+++ b/test cases/rust/4 polyglot/meson.build
@@ -1,5 +1,5 @@
project('rust and c polyglot executable', 'c', 'rust')
-l = library('stuff', 'stuff.rs', install : true)
+l = library('stuff', 'stuff.rs', rust_crate_type: 'cdylib', install : true)
e = executable('prog', 'prog.c', link_with : l, install : true)
test('polyglottest', e)