We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef648f4 commit a6e802aCopy full SHA for a6e802a
src/test/run-make-fulldeps/lto-dylib-dep/Makefile
@@ -0,0 +1,10 @@
1
+-include ../tools.mk
2
+
3
+# Test that we don't run into an assertion when using a Rust dylib dependency
4
+# while compiling with full LTO.
5
+# See https://github.com/rust-lang/rust/issues/59137
6
7
+all:
8
+ $(RUSTC) a_dylib.rs --crate-type=dylib -C prefer-dynamic
9
+ $(RUSTC) main.rs -C lto
10
+ $(call RUN,main)
src/test/run-make-fulldeps/lto-dylib-dep/a_dylib.rs
@@ -0,0 +1,4 @@
+pub fn foo() {
+ println!("bar");
+}
src/test/run-make-fulldeps/lto-dylib-dep/main.rs
@@ -0,0 +1,6 @@
+extern crate a_dylib;
+fn main() {
+ a_dylib::foo();
0 commit comments