Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
bdacb63f
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bdacb63f
编写于
11月 05, 2016
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Only test docs and such for the host
上级
18ee04b3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
5 deletion
+14
-5
src/bootstrap/clean.rs
src/bootstrap/clean.rs
+2
-1
src/bootstrap/step.rs
src/bootstrap/step.rs
+12
-4
未找到文件。
src/bootstrap/clean.rs
浏览文件 @
bdacb63f
...
...
@@ -36,7 +36,8 @@ pub fn clean(build: &Build) {
if
entry
.file_name
()
.to_str
()
==
Some
(
"llvm"
)
{
continue
}
rm_rf
(
build
,
&
entry
.path
());
let
path
=
t!
(
entry
.path
()
.canonicalize
());
rm_rf
(
build
,
&
path
);
}
}
}
...
...
src/bootstrap/step.rs
浏览文件 @
bdacb63f
...
...
@@ -112,7 +112,7 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
.dep
(|
s
|
s
.name
(
"build-crate-rustc-main"
));
for
(
krate
,
path
,
_
default
)
in
krates
(
"std_shim"
)
{
rules
.build
(
&
krate
.build_step
,
path
)
.dep
(
|
s
|
s
.name
(
"rustc"
)
.target
(
s
.host
))
.dep
(
move
|
s
|
s
.name
(
"rustc"
)
.host
(
&
build
.config.build
)
.target
(
s
.host
))
.dep
(
move
|
s
|
{
if
s
.host
==
build
.config.build
{
dummy
(
s
,
build
)
...
...
@@ -296,7 +296,7 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
rules
.test
(
"check-rustc-all"
,
"path/to/nowhere"
)
.dep
(|
s
|
s
.name
(
"librustc"
))
.default
(
true
)
.host
(
true
)
.host
(
true
)
.run
(
move
|
s
|
check
::
krate
(
build
,
&
s
.compiler
(),
s
.target
,
Mode
::
Librustc
,
None
));
...
...
@@ -304,23 +304,28 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
.dep
(|
s
|
s
.name
(
"tool-linkchecker"
))
.dep
(|
s
|
s
.name
(
"default:doc"
))
.default
(
true
)
.host
(
true
)
.run
(
move
|
s
|
check
::
linkcheck
(
build
,
s
.stage
,
s
.target
));
rules
.test
(
"check-cargotest"
,
"src/tools/cargotest"
)
.dep
(|
s
|
s
.name
(
"tool-cargotest"
))
.dep
(|
s
|
s
.name
(
"librustc"
))
.host
(
true
)
.run
(
move
|
s
|
check
::
cargotest
(
build
,
s
.stage
,
s
.target
));
rules
.test
(
"check-tidy"
,
"src/tools/tidy"
)
.dep
(|
s
|
s
.name
(
"tool-tidy"
))
.default
(
true
)
.host
(
true
)
.run
(
move
|
s
|
check
::
tidy
(
build
,
s
.stage
,
s
.target
));
rules
.test
(
"check-error-index"
,
"src/tools/error_index_generator"
)
.dep
(|
s
|
s
.name
(
"libstd"
))
.dep
(|
s
|
s
.name
(
"tool-error-index"
)
.host
(
s
.host
))
.default
(
true
)
.host
(
true
)
.run
(
move
|
s
|
check
::
error_index
(
build
,
&
s
.compiler
()));
rules
.test
(
"check-docs"
,
"src/doc"
)
.dep
(|
s
|
s
.name
(
"libtest"
))
.default
(
true
)
.host
(
true
)
.run
(
move
|
s
|
check
::
docs
(
build
,
&
s
.compiler
()));
rules
.build
(
"test-helpers"
,
"src/rt/rust_test_helpers.c"
)
...
...
@@ -363,12 +368,14 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
.default
(
build
.config.docs
)
.run
(
move
|
s
|
doc
::
rustbook
(
build
,
s
.stage
,
s
.target
,
"nomicon"
));
rules
.doc
(
"doc-standalone"
,
"src/doc"
)
.dep
(
move
|
s
|
s
.name
(
"rustc"
)
.target
(
&
build
.config.build
))
.dep
(
move
|
s
|
s
.name
(
"rustc"
)
.
host
(
&
build
.config.build
)
.
target
(
&
build
.config.build
))
.default
(
build
.config.docs
)
.run
(
move
|
s
|
doc
::
standalone
(
build
,
s
.stage
,
s
.target
));
rules
.doc
(
"doc-error-index"
,
"src/tools/error_index_generator"
)
.dep
(
move
|
s
|
s
.name
(
"tool-error-index"
)
.target
(
&
build
.config.build
))
.dep
(
move
|
s
|
s
.name
(
"librustc"
))
.default
(
build
.config.docs
)
.host
(
true
)
.run
(
move
|
s
|
doc
::
error_index
(
build
,
s
.stage
,
s
.target
));
for
(
krate
,
path
,
default
)
in
krates
(
"std_shim"
)
{
rules
.doc
(
&
krate
.doc_step
,
path
)
...
...
@@ -393,7 +400,7 @@ fn dummy<'a>(s: &Step<'a>, build: &'a Build) -> Step<'a> {
// ========================================================================
// Distribution targets
rules
.dist
(
"dist-rustc"
,
"src/librustc"
)
.dep
(
|
s
|
s
.name
(
"rustc"
))
.dep
(
move
|
s
|
s
.name
(
"rustc"
)
.host
(
&
build
.config.build
))
.host
(
true
)
.default
(
true
)
.run
(
move
|
s
|
dist
::
rustc
(
build
,
s
.stage
,
s
.target
));
...
...
@@ -658,6 +665,7 @@ fn run(&self, steps: &[Step<'a>]) {
// And finally, iterate over everything and execute it.
for
step
in
order
.iter
()
{
self
.build
.verbose
(
&
format!
(
"executing step {:?}"
,
step
));
(
self
.rules
[
step
.name
]
.run
)(
step
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录