Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
de6d07ab
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,发现更多精彩内容 >>
提交
de6d07ab
编写于
9月 29, 2011
作者:
B
Brian Anderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Register snapshots and finish filesystem reorg
上级
80829af8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
29 deletion
+6
-29
mk/stage0.mk
mk/stage0.mk
+0
-9
mk/stageN.mk
mk/stageN.mk
+0
-9
src/etc/get-snapshot.py
src/etc/get-snapshot.py
+1
-1
src/etc/snapshot.py
src/etc/snapshot.py
+0
-10
src/snapshots.txt
src/snapshots.txt
+5
-0
未找到文件。
mk/stage0.mk
浏览文件 @
de6d07ab
# FIXME: We're temorarily moving stuff all over the place here to make
# the old snapshot compatible with the new build rules
stage0/bin/rustc$(X)
:
$(S)src/snapshots.txt $(S)src/etc/get-snapshot.py $(MKFILES)
@
$(
call
E, fetch:
$@
)
$(Q)$(S)
src/etc/get-snapshot.py
$(Q)
cp
stage0/rustc
$(X)
stage0/bin/rustc
$(X)
$(Q)
cp
stage0/
$(CFG_RUNTIME)
stage0/lib/
$(CFG_RUNTIME)
$(Q)
cp
stage0/
$(CFG_RUSTLLVM)
stage0/lib/
$(CFG_RUSTLLVM)
$(Q)
mkdir
-p
stage0/bin/lib
$(Q)
cp
stage0/lib/intrinsics.bc stage0/bin/lib/intrinsics.bc
$(Q)
cp
stage0/lib/glue.o stage0/bin/lib/glue.o
$(Q)
cp
stage0/lib/main.o stage0/bin/lib/main.o
$(Q)
touch
$@
# Host libs will be made in the process of making rustc above.
...
...
mk/stageN.mk
浏览文件 @
de6d07ab
...
...
@@ -27,13 +27,10 @@ stage$(2)/lib/%.o: stage$(2)/lib/%.s
@
$
$(
call
E, assemble
[
gcc]:
$$
@
)
$
$(Q)
gcc
$
$(CFG_GCCISH_CFLAGS)
-o
$$
@
-c
$$
<
# FIXME: the bin/lib/libstd.so dep is transitional
stage$(2)/bin/rustc$$(X)
:
$$(COMPILER_CRATE) $$(COMPILER_INPUTS)
\
stage$(2)/lib/$$(CFG_RUNTIME)
\
$$(call CFG_STDLIB_DEFAULT
,
stage$(1)
,
stage$(2))
\
stage$(2)/lib/$$(CFG_RUSTLLVM)
\
stage$(1)/bin/lib/$$(CFG_STDLIB)
\
$$(SREQ$(1)$(3))
@
$
$(
call
E, compile_and_link:
$$
@
)
$$
(
STAGE
$(1)
)
-L
stage
$(2)
/lib
-o
$$
@
$$
<
...
...
@@ -97,12 +94,6 @@ stage$(2)/lib/rustc/$(3)/libstd.rlib: \
@
$
$(
call
E, compile_and_link:
$$
@
)
$$
(
STAGE
$(2)
)
--lib
--static
-o
$$
@
$$
<
# FIXME: Transitional so that stage0 can find std when building stage1/rustc
stage$(2)/bin/lib/$$(CFG_STDLIB)
:
stage$(2)/lib/rustc/$(3)/$$(CFG_STDLIB)
@
$
$(
call
E,
cp
:
$$
@
)
$
$(Q)
mkdir
-p
stage
$(2)
/bin/lib
$
$(Q)
cp
$$
<
$$
@
stage$(2)/lib/rustc/$(3)/$$(CFG_RUNTIME)
:
rt/$$(CFG_RUNTIME)
@
$
$(
call
E,
cp
:
$$
@
)
$
$(Q)
cp
$$
<
$$
@
...
...
src/etc/get-snapshot.py
浏览文件 @
de6d07ab
...
...
@@ -9,7 +9,7 @@ def unpack_snapshot(snap):
print
(
"opening snapshot "
+
dl_path
)
tar
=
tarfile
.
open
(
dl_path
)
kernel
=
get_kernel
()
for
name
in
old_
snapshot_files
[
kernel
]:
for
name
in
snapshot_files
[
kernel
]:
p
=
"rust-stage0/"
+
name
fp
=
os
.
path
.
join
(
"stage0"
,
name
)
print
(
"extracting "
+
fp
)
...
...
src/etc/snapshot.py
浏览文件 @
de6d07ab
...
...
@@ -15,16 +15,6 @@ download_url_base = "http://dl.rust-lang.org/stage0-snapshots"
download_dir_base
=
"dl"
download_unpack_base
=
os
.
path
.
join
(
download_dir_base
,
"unpack"
)
# FIXME: Transitional
old_snapshot_files
=
{
"linux"
:
[
"rustc"
,
"lib/glue.o"
,
"lib/libstd.so"
,
"lib/main.o"
,
"librustrt.so"
,
"librustllvm.so"
,
"lib/intrinsics.bc"
],
"macos"
:
[
"rustc"
,
"lib/glue.o"
,
"lib/libstd.dylib"
,
"lib/main.o"
,
"librustrt.dylib"
,
"librustllvm.dylib"
,
"lib/intrinsics.bc"
],
"winnt"
:
[
"rustc.exe"
,
"lib/glue.o"
,
"lib/std.dll"
,
"lib/main.o"
,
"rustrt.dll"
,
"rustllvm.dll"
,
"lib/intrinsics.bc"
]
}
snapshot_files
=
{
"linux"
:
[
"bin/rustc"
,
"lib/libstd.so"
,
"lib/librustrt.so"
,
"lib/librustllvm.so"
],
...
...
src/snapshots.txt
浏览文件 @
de6d07ab
S 2011-09-29 80829af
linux-i386 0bf17c8bfdf7e3400cd546577d4f57b7be821441
macos-i386 9b40e0c830396469811e9e6e0b430d0d51876a27
winnt-i386 735b189037ab45d88f937cbe391c4e30aaf1182b
S 2011-09-28 a3a2737
linux-i386 d255b2ec7205209b7d7fe71be84def6306491387
macos-i386 1ff3b71ccfc7e404c813b68a7a257406f292b819
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录