Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
fcb2ee37
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fcb2ee37
编写于
6月 14, 2017
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed determinism and procdump path
上级
6a98a69e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
15 deletion
+17
-15
build/scripts/build.ps1
build/scripts/build.ps1
+14
-12
build/scripts/cibuild.cmd
build/scripts/cibuild.cmd
+1
-1
build/scripts/test-determinism.ps1
build/scripts/test-determinism.ps1
+2
-2
未找到文件。
build/scripts/build.ps1
浏览文件 @
fcb2ee37
...
...
@@ -61,16 +61,11 @@ function Process-Arguments() {
exit
1
}
$test32
=
-not
$test64
if
(
$cibuild
)
{
$bootstrap
=
$true
$restore
=
$true
$build
=
$true
}
$
script
:
test32
=
-not
$test64
$
script
:
debug
=
-not
$release
if
(
$testDeterminism
)
{
$bootstrap
=
$true
$
script
:
bootstrap
=
$true
}
}
...
...
@@ -100,13 +95,17 @@ function Run-MSBuild() {
# Important to not set $script:bootstrapDir here yet as we're actually in the process of
# building the bootstrap.
function
Make-BootstrapBuild
()
{
$bootstrapLog
=
Join-Path
$binariesDir
"Bootstrap.log"
Run-MSBuild
/p:UseShippingAssemblyVersion
=
true
/p:InitialDefineConstants
=
BOOTSTRAP
"build\Toolset\Toolset.csproj"
/p:Configuration
=
$buildConfiguration
/fileloggerparameters:LogFile
=
$
(
$bootstrapLog
)
Write-Host
"Building Bootstrap compiler"
Run-MSBuild
/p:UseShippingAssemblyVersion
=
true
/p:InitialDefineConstants
=
BOOTSTRAP
"build\Toolset\Toolset.csproj"
/p:Configuration
=
$buildConfiguration
/fileloggerparameters:LogFile
=
$
(
$bootstrapLog
)
|
Out-Host
$dir
=
Join-Path
$binariesDir
"Bootstrap"
Remove-Item
-re
$dir
-ErrorAction
SilentlyContinue
Create-Directory
$dir
Move-Item
"
$configDir
\Exes\Toolset\*"
$dir
Run-MSBuild
/t:Clean
"build\Toolset\Toolset.csproj"
/p:Configuration
=
$buildConfiguration
Write-Host
"Cleaning Bootstrap compiler artifacts"
Run-MSBuild
/t:Clean
"build\Toolset\Toolset.csproj"
/p:Configuration
=
$buildConfiguration
|
Out-Host
Stop-BuildProcesses
return
$dir
}
...
...
@@ -197,7 +196,7 @@ function Test-XUnit() {
$args
+=
" -xml -timeout:50"
$procdumpPath
=
Ensure-ProcDump
$args
+=
" -procdump:
$procDumpPath
"
$args
+=
" -procdump
path
:
$procDumpPath
"
}
if
(
$test64
)
{
...
...
@@ -293,9 +292,11 @@ try {
.
(
Join-Path
$PSScriptRoot
"build-utils.ps1"
)
Push-Location
$repoDir
Write-Host
"Repo Dir
$repoDir
"
Write-Host
"Binaries Dir
$binariesDir
"
Process-Arguments
$debug
=
-not
$release
$buildConfiguration
=
if
(
$release
)
{
"Release"
}
else
{
"Debug"
}
$msbuild
=
Ensure-MSBuild
$msbuildDir
=
Split-Path
-parent
$msbuild
...
...
@@ -321,6 +322,7 @@ try {
}
if
(
$bootstrap
)
{
Write-Host
"Making bootstrap"
$bootstrapDir
=
Make-BootstrapBuild
}
...
...
build/scripts/cibuild.cmd
浏览文件 @
fcb2ee37
@echo
off
powershell
-noprofile -executionPolicy
RemoteSigned
-file
"
%~dp0
\build.ps1"
-cibuild -build -restore
%
*
powershell
-noprofile -executionPolicy
RemoteSigned
-file
"
%~dp0
\build.ps1"
-cibuild -build -restore
-bootstrap
%
*
build/scripts/test-determinism.ps1
浏览文件 @
fcb2ee37
[
CmdletBinding
(
PositionalBinding
=
$false
)]
param
(
[
string
]
$bootstrapDir
=
$
(
throw
"Need a directory containing a compiler build to test with"
),
param
(
[
string
]
$bootstrapDir
=
""
,
[
bool
]
$debugDeterminism
=
$false
)
Set-StrictMode
-version
2.0
...
...
@@ -179,7 +179,7 @@ try {
.
(
Join-Path
$PSScriptRoot
"build-utils.ps1"
)
$msbuild
=
Ensure-MSBuild
if
(
-not
([
IO.Path
]::
IsPathRooted
(
$
script
:
bootstrapDir
)))
{
if
(
(
$bootstrapDir
-eq
""
)
-or
(
-not
([
IO.Path
]::
IsPathRooted
(
$
script
:
bootstrapDir
)
)))
{
Write-Host
"The bootstrap build path must be absolute"
exit
1
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录