summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/compiler-lookup-paths
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/run-make-fulldeps/compiler-lookup-paths
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/run-make-fulldeps/compiler-lookup-paths')
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/Makefile38
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/a.rs1
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/b.rs2
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/c.rs2
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/d.rs4
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/e.rs2
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs4
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/f.rs2
-rw-r--r--src/test/run-make-fulldeps/compiler-lookup-paths/native.c1
9 files changed, 0 insertions, 56 deletions
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/Makefile b/src/test/run-make-fulldeps/compiler-lookup-paths/Makefile
deleted file mode 100644
index c16bf7af6..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/Makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-include ../tools.mk
-
-all: $(TMPDIR)/libnative.a
- mkdir -p $(TMPDIR)/crate
- mkdir -p $(TMPDIR)/native
- mv $(TMPDIR)/libnative.a $(TMPDIR)/native
- $(RUSTC) a.rs
- mv $(TMPDIR)/liba.rlib $(TMPDIR)/crate
- $(RUSTC) b.rs -L native=$(TMPDIR)/crate && exit 1 || exit 0
- $(RUSTC) b.rs -L dependency=$(TMPDIR)/crate && exit 1 || exit 0
- $(RUSTC) b.rs -L crate=$(TMPDIR)/crate
- $(RUSTC) b.rs -L all=$(TMPDIR)/crate
- $(RUSTC) c.rs -L native=$(TMPDIR)/crate && exit 1 || exit 0
- $(RUSTC) c.rs -L crate=$(TMPDIR)/crate && exit 1 || exit 0
- $(RUSTC) c.rs -L dependency=$(TMPDIR)/crate
- $(RUSTC) c.rs -L all=$(TMPDIR)/crate
- $(RUSTC) d.rs -L dependency=$(TMPDIR)/native && exit 1 || exit 0
- $(RUSTC) d.rs -L crate=$(TMPDIR)/native && exit 1 || exit 0
- $(RUSTC) d.rs -L native=$(TMPDIR)/native
- $(RUSTC) d.rs -L all=$(TMPDIR)/native
- # Deduplication tests:
- # Same hash, no errors.
- mkdir -p $(TMPDIR)/e1
- mkdir -p $(TMPDIR)/e2
- $(RUSTC) e.rs -o $(TMPDIR)/e1/libe.rlib
- $(RUSTC) e.rs -o $(TMPDIR)/e2/libe.rlib
- $(RUSTC) f.rs -L $(TMPDIR)/e1 -L $(TMPDIR)/e2
- $(RUSTC) f.rs -L crate=$(TMPDIR)/e1 -L $(TMPDIR)/e2
- $(RUSTC) f.rs -L crate=$(TMPDIR)/e1 -L crate=$(TMPDIR)/e2
- # Different hash, errors.
- $(RUSTC) e2.rs -o $(TMPDIR)/e2/libe.rlib
- $(RUSTC) f.rs -L $(TMPDIR)/e1 -L $(TMPDIR)/e2 && exit 1 || exit 0
- $(RUSTC) f.rs -L crate=$(TMPDIR)/e1 -L $(TMPDIR)/e2 && exit 1 || exit 0
- $(RUSTC) f.rs -L crate=$(TMPDIR)/e1 -L crate=$(TMPDIR)/e2 && exit 1 || exit 0
- # Native/dependency paths don't cause errors.
- $(RUSTC) f.rs -L native=$(TMPDIR)/e1 -L $(TMPDIR)/e2
- $(RUSTC) f.rs -L dependency=$(TMPDIR)/e1 -L $(TMPDIR)/e2
- $(RUSTC) f.rs -L dependency=$(TMPDIR)/e1 -L crate=$(TMPDIR)/e2
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/a.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/a.rs
deleted file mode 100644
index 83be6e807..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/a.rs
+++ /dev/null
@@ -1 +0,0 @@
-#![crate_type = "lib"]
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/b.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/b.rs
deleted file mode 100644
index 1be6cbc91..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/b.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-#![crate_type = "lib"]
-extern crate a;
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/c.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/c.rs
deleted file mode 100644
index 4c7ce01b6..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/c.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-#![crate_type = "lib"]
-extern crate b;
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/d.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/d.rs
deleted file mode 100644
index 6cd9916b6..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/d.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-#![crate_type = "rlib"]
-
-#[link(name = "native", kind = "static")]
-extern "C" {}
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/e.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/e.rs
deleted file mode 100644
index 18eb60aca..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/e.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-#![crate_name = "e"]
-#![crate_type = "rlib"]
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs
deleted file mode 100644
index cbf08b98e..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/e2.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-#![crate_name = "e"]
-#![crate_type = "rlib"]
-
-pub fn f() {}
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/f.rs b/src/test/run-make-fulldeps/compiler-lookup-paths/f.rs
deleted file mode 100644
index 483deaaea..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/f.rs
+++ /dev/null
@@ -1,2 +0,0 @@
-#![crate_type = "rlib"]
-extern crate e;
diff --git a/src/test/run-make-fulldeps/compiler-lookup-paths/native.c b/src/test/run-make-fulldeps/compiler-lookup-paths/native.c
deleted file mode 100644
index d11c69f81..000000000
--- a/src/test/run-make-fulldeps/compiler-lookup-paths/native.c
+++ /dev/null
@@ -1 +0,0 @@
-// intentionally empty