Skip to content

Commit 6afc1f4

Browse files
committed
Add test
1 parent f22a808 commit 6afc1f4

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include ../tools.mk
2+
3+
# Test that rustdoc will properly canonicalize the target spec json path just like rustc
4+
5+
OUTPUT_DIR := "$(TMPDIR)/rustdoc-target-spec-json-path"
6+
7+
all:
8+
$(RUSTC) --crate-type lib dummy_core.rs --target target.json
9+
$(RUSTDOC) -o $(OUTPUT_DIR) -L $(TMPDIR) my_crate.rs --target target.json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#![feature(no_core)]
2+
#![no_core]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#![feature(no_core)]
2+
#![no_core]
3+
extern crate dummy_core;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"arch": "x86_64",
3+
"cpu": "x86-64",
4+
"crt-static-respected": true,
5+
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
6+
"dynamic-linking": true,
7+
"env": "gnu",
8+
"executables": true,
9+
"has-elf-tls": true,
10+
"has-rpath": true,
11+
"is-builtin": true,
12+
"linker-is-gnu": true,
13+
"llvm-target": "x86_64-unknown-linux-gnu",
14+
"max-atomic-width": 64,
15+
"os": "linux",
16+
"position-independent-executables": true,
17+
"pre-link-args": {
18+
"gcc": [
19+
"-m64"
20+
]
21+
},
22+
"relro-level": "full",
23+
"stack-probes": {
24+
"kind": "inline-or-call",
25+
"min-llvm-version-for-inline": [
26+
11,
27+
0,
28+
1
29+
]
30+
},
31+
"supported-sanitizers": [
32+
"address",
33+
"leak",
34+
"memory",
35+
"thread"
36+
],
37+
"target-family": "unix",
38+
"target-pointer-width": "64"
39+
}

0 commit comments

Comments
 (0)