File tree 4 files changed +53
-0
lines changed
src/test/run-make-fulldeps/rustdoc-target-spec-json-path
4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ #![ feature( no_core) ]
2
+ #![ no_core]
Original file line number Diff line number Diff line change
1
+ #![ feature( no_core) ]
2
+ #![ no_core]
3
+ extern crate dummy_core;
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments