Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
601c2edb
R
Rust
项目概览
int
/
Rust
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
601c2edb
编写于
2月 19, 2013
作者:
L
Luqman Aden
提交者:
Tim Chevalier
2月 20, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix fallout in rusti & rustpkg.
上级
cd82c456
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
src/librusti/rusti.rc
src/librusti/rusti.rc
+3
-3
src/librustpkg/rustpkg.rc
src/librustpkg/rustpkg.rc
+2
-2
src/librustpkg/util.rs
src/librustpkg/util.rs
+3
-3
未找到文件。
src/librusti/rusti.rc
浏览文件 @
601c2edb
...
...
@@ -131,7 +131,7 @@ fn record(repl: Repl, blk: @ast::blk, intr: @token::ident_interner) -> Repl {
/// Run an input string in a Repl, returning the new Repl.
fn run(repl: Repl, input: ~str) -> Repl {
let options
: @session::options = @
{
let options
= @session::options
{
crate_type: session::unknown_crate,
binary: repl.binary,
addl_lib_search_paths: repl.lib_search_paths.map(|p| Path(*p)),
...
...
@@ -157,7 +157,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
let outputs = driver::build_output_filenames(wrapped, &None, &None, sess);
debug!("calling compile_upto");
let
{crate: crate, tcx: _}
= driver::compile_upto(sess, cfg, wrapped,
let
(crate, _)
= driver::compile_upto(sess, cfg, wrapped,
driver::cu_everything,
Some(outputs));
...
...
@@ -196,7 +196,7 @@ fn run(repl: Repl, input: ~str) -> Repl {
fn compile_crate(src_filename: ~str, binary: ~str) -> Option<bool> {
match do task::try {
let src_path = Path(src_filename);
let options
: @session::options = @
{
let options
= @session::options
{
binary: binary,
addl_lib_search_paths: ~[os::getcwd()],
.. *session::basic_options()
...
...
src/librustpkg/rustpkg.rc
浏览文件 @
601c2edb
...
...
@@ -64,7 +64,7 @@ impl PackageScript {
}
let binary = os::args()[0];
let options
: @session::options = @
{
let options
= @session::options
{
binary: binary,
crate_type: session::bin_crate,
.. *session::basic_options()
...
...
@@ -72,7 +72,7 @@ impl PackageScript {
let input = driver::file_input(script);
let sess = driver::build_session(options, diagnostic::emit);
let cfg = driver::build_configuration(sess, binary, input);
let
{crate, _}
= driver::compile_upto(sess, cfg, input,
let
(crate, _)
= driver::compile_upto(sess, cfg, input,
driver::cu_parse, None);
let mut id = None;
let mut vers = None;
...
...
src/librustpkg/util.rs
浏览文件 @
601c2edb
...
...
@@ -599,7 +599,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
let
test_dir
=
dir
.push
(
~
"test"
);
let
binary
=
os
::
args
()[
0
];
let
matches
=
getopts
(
flags
,
driver
::
optgroups
())
.get
();
let
options
=
@
{
let
options
=
@
session
::
options
{
crate_type
:
session
::
unknown_crate
,
optimize
:
if
opt
{
session
::
Aggressive
}
else
{
session
::
No
},
test
:
test
,
...
...
@@ -612,7 +612,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
crate_cfg
.push
(
attr
::
mk_word_item
(
@
cfg
));
}
let
options
=
@
{
let
options
=
@
session
::
options
{
cfg
:
vec
::
append
(
options
.cfg
,
crate_cfg
),
..
*
options
};
...
...
@@ -620,7 +620,7 @@ pub fn compile_input(sysroot: Option<Path>, input: driver::input, dir: &Path,
let
cfg
=
driver
::
build_configuration
(
sess
,
binary
,
input
);
let
mut
outputs
=
driver
::
build_output_filenames
(
input
,
&
None
,
&
None
,
sess
);
let
{
crate
,
_
}
=
driver
::
compile_upto
(
sess
,
cfg
,
input
,
driver
::
cu_parse
,
let
(
crate
,
_
)
=
driver
::
compile_upto
(
sess
,
cfg
,
input
,
driver
::
cu_parse
,
Some
(
outputs
));
let
mut
name
=
None
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录