Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
61d93877
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,发现更多精彩内容 >>
提交
61d93877
编写于
3月 13, 2017
作者:
P
Peter Wagenet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Target builds for older macOS
上级
a5483a7f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
0 deletion
+19
-0
.travis.yml
.travis.yml
+10
-0
src/bootstrap/compile.rs
src/bootstrap/compile.rs
+9
-0
未找到文件。
.travis.yml
浏览文件 @
61d93877
...
...
@@ -48,6 +48,8 @@ matrix:
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache=debug
MACOSX_DEPLOYMENT_TARGET=10.8
MACOSX_STD_DEPLOYMENT_TARGET=10.7
os
:
osx
osx_image
:
xcode8.2
install
:
&osx_install_sccache
>
...
...
@@ -60,6 +62,8 @@ matrix:
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache=debug
MACOSX_DEPLOYMENT_TARGET=10.8
MACOSX_STD_DEPLOYMENT_TARGET=10.7
os
:
osx
osx_image
:
xcode8.2
install
:
*osx_install_sccache
...
...
@@ -72,6 +76,8 @@ matrix:
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache=debug
MACOSX_DEPLOYMENT_TARGET=10.8
MACOSX_STD_DEPLOYMENT_TARGET=10.7
os
:
osx
osx_image
:
xcode8.2
install
:
>
...
...
@@ -85,6 +91,8 @@ matrix:
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache=debug
MACOSX_DEPLOYMENT_TARGET=10.8
MACOSX_STD_DEPLOYMENT_TARGET=10.7
os
:
osx
osx_image
:
xcode8.2
install
:
*osx_install_sccache
...
...
@@ -102,6 +110,8 @@ matrix:
RUSTC_RETRY_LINKER_ON_SEGFAULT=1
SCCACHE_ERROR_LOG=/tmp/sccache.log
RUST_LOG=sccache=debug
MACOSX_DEPLOYMENT_TARGET=10.8
MACOSX_STD_DEPLOYMENT_TARGET=10.7
os
:
osx
osx_image
:
xcode8.2
install
:
*osx_install_sccache
...
...
src/bootstrap/compile.rs
浏览文件 @
61d93877
...
...
@@ -20,6 +20,7 @@
use
std
::
fs
::{
self
,
File
};
use
std
::
path
::{
Path
,
PathBuf
};
use
std
::
process
::
Command
;
use
std
::
env
;
use
build_helper
::{
output
,
mtime
,
up_to_date
};
use
filetime
::
FileTime
;
...
...
@@ -44,6 +45,11 @@ pub fn std(build: &Build, target: &str, compiler: &Compiler) {
build
.clear_if_dirty
(
&
out_dir
,
&
build
.compiler_path
(
compiler
));
let
mut
cargo
=
build
.cargo
(
compiler
,
Mode
::
Libstd
,
target
,
"build"
);
let
mut
features
=
build
.std_features
();
if
let
Ok
(
target
)
=
env
::
var
(
"MACOSX_STD_DEPLOYMENT_TARGET"
)
{
cargo
.env
(
"MACOSX_DEPLOYMENT_TARGET"
,
target
);
}
// When doing a local rebuild we tell cargo that we're stage1 rather than
// stage0. This works fine if the local rust and being-built rust have the
// same view of what the default allocator is, but fails otherwise. Since
...
...
@@ -170,6 +176,9 @@ pub fn test(build: &Build, target: &str, compiler: &Compiler) {
let
out_dir
=
build
.cargo_out
(
compiler
,
Mode
::
Libtest
,
target
);
build
.clear_if_dirty
(
&
out_dir
,
&
libstd_stamp
(
build
,
compiler
,
target
));
let
mut
cargo
=
build
.cargo
(
compiler
,
Mode
::
Libtest
,
target
,
"build"
);
if
let
Ok
(
target
)
=
env
::
var
(
"MACOSX_STD_DEPLOYMENT_TARGET"
)
{
cargo
.env
(
"MACOSX_DEPLOYMENT_TARGET"
,
target
);
}
cargo
.arg
(
"--manifest-path"
)
.arg
(
build
.src
.join
(
"src/libtest/Cargo.toml"
));
build
.run
(
&
mut
cargo
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录