Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
a7a1bf81
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
a7a1bf81
编写于
9月 21, 2014
作者:
C
Colin Davidson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move -Z lto to -C lto.
Closes #12443
上级
d7e1bb5f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
11 addition
and
11 deletion
+11
-11
src/librustc/driver/config.rs
src/librustc/driver/config.rs
+2
-2
src/librustc/driver/session.rs
src/librustc/driver/session.rs
+1
-1
src/test/compile-fail/issue-11154.rs
src/test/compile-fail/issue-11154.rs
+1
-1
src/test/debuginfo/cross-crate-type-uniquing.rs
src/test/debuginfo/cross-crate-type-uniquing.rs
+1
-1
src/test/run-make/issue-14500/Makefile
src/test/run-make/issue-14500/Makefile
+1
-1
src/test/run-make/lto-smoke-c/Makefile
src/test/run-make/lto-smoke-c/Makefile
+1
-1
src/test/run-make/lto-smoke/Makefile
src/test/run-make/lto-smoke/Makefile
+1
-1
src/test/run-make/lto-syntax-extension/Makefile
src/test/run-make/lto-syntax-extension/Makefile
+1
-1
src/test/run-pass/sepcomp-lib-lto.rs
src/test/run-pass/sepcomp-lib-lto.rs
+2
-2
未找到文件。
src/librustc/driver/config.rs
浏览文件 @
a7a1bf81
...
...
@@ -180,7 +180,6 @@ pub enum CrateType {
GC
,
PRINT_LINK_ARGS
,
PRINT_LLVM_PASSES
,
LTO
,
AST_JSON
,
AST_JSON_NOEXPAND
,
LS
,
...
...
@@ -219,7 +218,6 @@ pub fn debugging_opts_map() -> Vec<(&'static str, &'static str, u64)> {
(
"print-llvm-passes"
,
"Prints the llvm optimization passes being run"
,
PRINT_LLVM_PASSES
),
(
"lto"
,
"Perform LLVM link-time optimizations"
,
LTO
),
(
"ast-json"
,
"Print the AST as JSON and halt"
,
AST_JSON
),
(
"ast-json-noexpand"
,
"Print the pre-expansion AST as JSON and halt"
,
AST_JSON_NOEXPAND
),
(
"ls"
,
"List the symbols defined by a library crate"
,
LS
),
...
...
@@ -353,6 +351,8 @@ fn parse_passes(slot: &mut Passes, v: Option<&str>) -> bool {
"system linker to link outputs with"
),
link_args
:
Vec
<
String
>
=
(
Vec
::
new
(),
parse_list
,
"extra arguments to pass to the linker (space separated)"
),
lto
:
bool
=
(
false
,
parse_bool
,
"perform LLVM link-time optimizations"
),
target_cpu
:
String
=
(
"generic"
.to_string
(),
parse_string
,
"select target processor (llc -mcpu=help for details)"
),
target_feature
:
String
=
(
""
.to_string
(),
parse_string
,
...
...
src/librustc/driver/session.rs
浏览文件 @
a7a1bf81
...
...
@@ -168,7 +168,7 @@ pub fn print_llvm_passes(&self) -> bool {
self
.debugging_opt
(
config
::
PRINT_LLVM_PASSES
)
}
pub
fn
lto
(
&
self
)
->
bool
{
self
.
debugging_opt
(
config
::
LTO
)
self
.
opts.cg.lto
}
pub
fn
no_landing_pads
(
&
self
)
->
bool
{
self
.debugging_opt
(
config
::
NO_LANDING_PADS
)
...
...
src/test/compile-fail/issue-11154.rs
浏览文件 @
a7a1bf81
...
...
@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: -
Z
lto -C prefer-dynamic
// compile-flags: -
C
lto -C prefer-dynamic
// error-pattern: cannot prefer dynamic linking
...
...
src/test/debuginfo/cross-crate-type-uniquing.rs
浏览文件 @
a7a1bf81
...
...
@@ -14,7 +14,7 @@
extern
crate
cross_crate_debuginfo_type_uniquing
;
// no-prefer-dynamic
// compile-flags:-g -
Z
lto
// compile-flags:-g -
C
lto
pub
struct
C
;
pub
fn
p
()
->
C
{
...
...
src/test/run-make/issue-14500/Makefile
浏览文件 @
a7a1bf81
...
...
@@ -8,7 +8,7 @@
all
:
$(RUSTC)
foo.rs
--crate-type
=
rlib
$(RUSTC)
bar.rs
--crate-type
=
staticlib
-
Z
lto
-L
.
-o
$(TMPDIR)
/libbar.a
$(RUSTC)
bar.rs
--crate-type
=
staticlib
-
C
lto
-L
.
-o
$(TMPDIR)
/libbar.a
$(CC)
foo.c
-lbar
-o
$(
call
RUN_BINFILE,foo
)
$(EXTRACFLAGS)
$(
call
RUN,foo
)
src/test/run-make/lto-smoke-c/Makefile
浏览文件 @
a7a1bf81
...
...
@@ -4,6 +4,6 @@
CC
:=
$
(
CC:-g
=)
all
:
$(RUSTC)
foo.rs
-
Z
lto
$(RUSTC)
foo.rs
-
C
lto
$(CC)
bar.c
-lfoo
-o
$(
call
RUN_BINFILE,bar
)
$(EXTRACFLAGS)
-lstdc
++
$(
call
RUN,bar
)
src/test/run-make/lto-smoke/Makefile
浏览文件 @
a7a1bf81
...
...
@@ -2,5 +2,5 @@
all
:
$(RUSTC)
lib.rs
$(RUSTC)
main.rs
-
Z
lto
$(RUSTC)
main.rs
-
C
lto
$(
call
RUN,main
)
src/test/run-make/lto-syntax-extension/Makefile
浏览文件 @
a7a1bf81
...
...
@@ -14,5 +14,5 @@ all: $(DOTEST)
dotest
:
env
$(RUSTC)
lib.rs
$(RUSTC)
main.rs
-
Z
lto
$(RUSTC)
main.rs
-
C
lto
$(
call
RUN,main
)
src/test/run-pass/sepcomp-lib-lto.rs
浏览文件 @
a7a1bf81
...
...
@@ -8,11 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Check that we can use `-
Z
lto` when linking against libraries that were
// Check that we can use `-
C
lto` when linking against libraries that were
// separately compiled.
// aux-build:sepcomp_lib.rs
// compile-flags: -
Z
lto
// compile-flags: -
C
lto
// no-prefer-dynamic
extern
crate
sepcomp_lib
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录