Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
1dd53f73
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,发现更多精彩内容 >>
提交
1dd53f73
编写于
8月 04, 2018
作者:
J
Jonathan A. Kollasch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add aarch64-unknown-netbsd target
上级
b011b091
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
2 deletion
+36
-2
src/librustc_target/spec/aarch64_unknown_netbsd.rs
src/librustc_target/spec/aarch64_unknown_netbsd.rs
+31
-0
src/librustc_target/spec/mod.rs
src/librustc_target/spec/mod.rs
+1
-0
src/libstd/os/raw/mod.rs
src/libstd/os/raw/mod.rs
+4
-2
未找到文件。
src/librustc_target/spec/aarch64_unknown_netbsd.rs
0 → 100644
浏览文件 @
1dd53f73
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use
spec
::{
LinkerFlavor
,
Target
,
TargetResult
};
pub
fn
target
()
->
TargetResult
{
let
mut
base
=
super
::
netbsd_base
::
opts
();
base
.max_atomic_width
=
Some
(
128
);
base
.abi_blacklist
=
super
::
arm_base
::
abi_blacklist
();
Ok
(
Target
{
llvm_target
:
"aarch64-unknown-netbsd"
.to_string
(),
target_endian
:
"little"
.to_string
(),
target_pointer_width
:
"64"
.to_string
(),
target_c_int_width
:
"32"
.to_string
(),
data_layout
:
"e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
.to_string
(),
arch
:
"aarch64"
.to_string
(),
target_os
:
"netbsd"
.to_string
(),
target_env
:
""
.to_string
(),
target_vendor
:
"unknown"
.to_string
(),
linker_flavor
:
LinkerFlavor
::
Gcc
,
options
:
base
,
})
}
src/librustc_target/spec/mod.rs
浏览文件 @
1dd53f73
...
...
@@ -319,6 +319,7 @@ fn $module() {
(
"i686-unknown-openbsd"
,
i686_unknown_openbsd
),
(
"x86_64-unknown-openbsd"
,
x86_64_unknown_openbsd
),
(
"aarch64-unknown-netbsd"
,
aarch64_unknown_netbsd
),
(
"armv6-unknown-netbsd-eabihf"
,
armv6_unknown_netbsd_eabihf
),
(
"armv7-unknown-netbsd-eabihf"
,
armv7_unknown_netbsd_eabihf
),
(
"i686-unknown-netbsd"
,
i686_unknown_netbsd
),
...
...
src/libstd/os/raw/mod.rs
浏览文件 @
1dd53f73
...
...
@@ -29,7 +29,8 @@
all(target_os
=
"android"
,
any(target_arch
=
"aarch64"
,
target_arch
=
"arm"
)),
all(target_os
=
"l4re"
,
target_arch
=
"x86_64"
),
all(target_os
=
"netbsd"
,
any(target_arch
=
"arm"
,
all(target_os
=
"netbsd"
,
any(target_arch
=
"aarch64"
,
target_arch
=
"arm"
,
target_arch
=
"powerpc"
)),
all(target_os
=
"openbsd"
,
target_arch
=
"aarch64"
),
all(target_os
=
"fuchsia"
,
target_arch
=
"aarch64"
)))]
...
...
@@ -43,7 +44,8 @@
all(target_os
=
"android"
,
any(target_arch
=
"aarch64"
,
target_arch
=
"arm"
)),
all(target_os
=
"l4re"
,
target_arch
=
"x86_64"
),
all(target_os
=
"netbsd"
,
any(target_arch
=
"arm"
,
all(target_os
=
"netbsd"
,
any(target_arch
=
"aarch64"
,
target_arch
=
"arm"
,
target_arch
=
"powerpc"
)),
all(target_os
=
"openbsd"
,
target_arch
=
"aarch64"
),
all(target_os
=
"fuchsia"
,
target_arch
=
"aarch64"
))))]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录