Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 5f301d5

Browse files
committed
Remove linker handling
1 parent 84328fc commit 5f301d5

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed
File renamed without changes.

ices/87813.rs renamed to ices/87813.sh

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
OUTPUT=$(rustc - 2>&1 << EOF
14
#[inline(always)]
25
fn other_ext() {
36
extern "C" {
@@ -18,3 +21,10 @@ fn main() {
1821
this_ext();
1922
other_ext();
2023
}
24+
EOF
25+
)
26+
27+
echo "$OUTPUT"
28+
if echo "$OUTPUT" | grep -q 'error: linking with .* failed'; then
29+
exit 101
30+
fi

src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ impl ICE {
6767
ice: self,
6868
outcome: match output.status.code() {
6969
_ if stderr.contains("error: internal compiler error") => Outcome::ICEd,
70-
Some(x) if x != 0 && stderr.contains("error: linking with `cc` failed") => {
71-
Outcome::ICEd
72-
}
7370
Some(0) => Outcome::NoError,
7471
Some(101) => Outcome::ICEd, // An ICE will cause an error code of 101
7572
// Bash uses 128+N for processes terminated by signal N

0 commit comments

Comments
 (0)