This commit is contained in:
bjorn3 2021-05-16 18:41:54 +02:00
parent f22a80890a
commit 6afc1f4516
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,9 @@
include ../tools.mk
# Test that rustdoc will properly canonicalize the target spec json path just like rustc
OUTPUT_DIR := "$(TMPDIR)/rustdoc-target-spec-json-path"
all:
$(RUSTC) --crate-type lib dummy_core.rs --target target.json
$(RUSTDOC) -o $(OUTPUT_DIR) -L $(TMPDIR) my_crate.rs --target target.json

View File

@ -0,0 +1,2 @@
#![feature(no_core)]
#![no_core]

View File

@ -0,0 +1,3 @@
#![feature(no_core)]
#![no_core]
extern crate dummy_core;

View File

@ -0,0 +1,39 @@
{
"arch": "x86_64",
"cpu": "x86-64",
"crt-static-respected": true,
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
"dynamic-linking": true,
"env": "gnu",
"executables": true,
"has-elf-tls": true,
"has-rpath": true,
"is-builtin": true,
"linker-is-gnu": true,
"llvm-target": "x86_64-unknown-linux-gnu",
"max-atomic-width": 64,
"os": "linux",
"position-independent-executables": true,
"pre-link-args": {
"gcc": [
"-m64"
]
},
"relro-level": "full",
"stack-probes": {
"kind": "inline-or-call",
"min-llvm-version-for-inline": [
11,
0,
1
]
},
"supported-sanitizers": [
"address",
"leak",
"memory",
"thread"
],
"target-family": "unix",
"target-pointer-width": "64"
}