Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
6a05aa6a
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,发现更多精彩内容 >>
提交
6a05aa6a
编写于
8月 24, 2013
作者:
L
Luqman Aden
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
librustc: Always use session target triple.
上级
cfd0bfbd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
36 deletion
+13
-36
src/librustc/back/arm.rs
src/librustc/back/arm.rs
+2
-8
src/librustc/back/mips.rs
src/librustc/back/mips.rs
+2
-8
src/librustc/back/x86.rs
src/librustc/back/x86.rs
+2
-8
src/librustc/back/x86_64.rs
src/librustc/back/x86_64.rs
+2
-8
src/librustc/driver/driver.rs
src/librustc/driver/driver.rs
+5
-4
未找到文件。
src/librustc/back/arm.rs
浏览文件 @
6a05aa6a
...
...
@@ -13,7 +13,7 @@
use
driver
::
session
;
use
metadata
::
loader
::
meta_section_name
;
pub
fn
get_target_strs
(
target_os
:
session
::
os
)
->
target_strs
::
t
{
pub
fn
get_target_strs
(
target_
triple
:
~
str
,
target_
os
:
session
::
os
)
->
target_strs
::
t
{
return
target_strs
::
t
{
module_asm
:
~
""
,
...
...
@@ -61,13 +61,7 @@ pub fn get_target_strs(target_os: session::os) -> target_strs::t {
}
},
target_triple
:
match
target_os
{
session
::
os_macos
=>
~
"arm-apple-darwin"
,
session
::
os_win32
=>
~
"arm-pc-mingw32"
,
session
::
os_linux
=>
~
"arm-unknown-linux-gnueabihf"
,
session
::
os_android
=>
~
"arm-linux-androideabi"
,
session
::
os_freebsd
=>
~
"arm-unknown-freebsd"
},
target_triple
:
target_triple
,
cc_args
:
~
[
~
"-marm"
]
};
...
...
src/librustc/back/mips.rs
浏览文件 @
6a05aa6a
...
...
@@ -13,7 +13,7 @@
use
driver
::
session
::
sess_os_to_meta_os
;
use
metadata
::
loader
::
meta_section_name
;
pub
fn
get_target_strs
(
target_os
:
session
::
os
)
->
target_strs
::
t
{
pub
fn
get_target_strs
(
target_
triple
:
~
str
,
target_
os
:
session
::
os
)
->
target_strs
::
t
{
return
target_strs
::
t
{
module_asm
:
~
""
,
...
...
@@ -61,13 +61,7 @@ pub fn get_target_strs(target_os: session::os) -> target_strs::t {
}
},
target_triple
:
match
target_os
{
session
::
os_macos
=>
~
"mips-apple-darwin"
,
session
::
os_win32
=>
~
"mips-pc-mingw32"
,
session
::
os_linux
=>
~
"mips-unknown-linux-gnu"
,
session
::
os_android
=>
~
"mips-unknown-android-gnu"
,
session
::
os_freebsd
=>
~
"mips-unknown-freebsd"
},
target_triple
:
target_triple
,
cc_args
:
~
[]
};
...
...
src/librustc/back/x86.rs
浏览文件 @
6a05aa6a
...
...
@@ -14,7 +14,7 @@
use
driver
::
session
;
use
metadata
::
loader
::
meta_section_name
;
pub
fn
get_target_strs
(
target_os
:
session
::
os
)
->
target_strs
::
t
{
pub
fn
get_target_strs
(
target_
triple
:
~
str
,
target_
os
:
session
::
os
)
->
target_strs
::
t
{
return
target_strs
::
t
{
module_asm
:
~
""
,
...
...
@@ -44,13 +44,7 @@ pub fn get_target_strs(target_os: session::os) -> target_strs::t {
}
},
target_triple
:
match
target_os
{
session
::
os_macos
=>
~
"i686-apple-darwin"
,
session
::
os_win32
=>
~
"i686-pc-mingw32"
,
session
::
os_linux
=>
~
"i686-unknown-linux-gnu"
,
session
::
os_android
=>
~
"i686-unknown-android-gnu"
,
session
::
os_freebsd
=>
~
"i686-unknown-freebsd"
},
target_triple
:
target_triple
,
cc_args
:
~
[
~
"-m32"
]
};
...
...
src/librustc/back/x86_64.rs
浏览文件 @
6a05aa6a
...
...
@@ -14,7 +14,7 @@
use
driver
::
session
;
use
metadata
::
loader
::
meta_section_name
;
pub
fn
get_target_strs
(
target_os
:
session
::
os
)
->
target_strs
::
t
{
pub
fn
get_target_strs
(
target_
triple
:
~
str
,
target_
os
:
session
::
os
)
->
target_strs
::
t
{
return
target_strs
::
t
{
module_asm
:
~
""
,
...
...
@@ -52,13 +52,7 @@ pub fn get_target_strs(target_os: session::os) -> target_strs::t {
}
},
target_triple
:
match
target_os
{
session
::
os_macos
=>
~
"x86_64-apple-darwin"
,
session
::
os_win32
=>
~
"x86_64-pc-mingw32"
,
session
::
os_linux
=>
~
"x86_64-unknown-linux-gnu"
,
session
::
os_android
=>
~
"x86_64-unknown-android-gnu"
,
session
::
os_freebsd
=>
~
"x86_64-unknown-freebsd"
,
},
target_triple
:
target_triple
,
cc_args
:
~
[
~
"-m64"
]
};
...
...
src/librustc/driver/driver.rs
浏览文件 @
6a05aa6a
...
...
@@ -570,11 +570,12 @@ pub fn build_target_config(sopts: @session::options,
abi
::
Arm
=>
(
ast
::
ty_i32
,
ast
::
ty_u32
,
ast
::
ty_f64
),
abi
::
Mips
=>
(
ast
::
ty_i32
,
ast
::
ty_u32
,
ast
::
ty_f64
)
};
let
target_triple
=
sopts
.target_triple
.clone
();
let
target_strs
=
match
arch
{
abi
::
X86
=>
x86
::
get_target_strs
(
os
),
abi
::
X86_64
=>
x86_64
::
get_target_strs
(
os
),
abi
::
Arm
=>
arm
::
get_target_strs
(
os
),
abi
::
Mips
=>
mips
::
get_target_strs
(
os
)
abi
::
X86
=>
x86
::
get_target_strs
(
target_triple
,
os
),
abi
::
X86_64
=>
x86_64
::
get_target_strs
(
target_triple
,
os
),
abi
::
Arm
=>
arm
::
get_target_strs
(
target_triple
,
os
),
abi
::
Mips
=>
mips
::
get_target_strs
(
target_triple
,
os
)
};
let
target_cfg
=
@
session
::
config
{
os
:
os
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录