-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use mscorlib.winmd by default (#470)
- Loading branch information
1 parent
5e32b48
commit 38a63d0
Showing
7 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<# | ||
.SYNOPSIS | ||
Builds mscorlib.winmd and locates it next to SwiftWinRT.exe. | ||
.PARAMETER Config | ||
The build configuration that was used to build SwiftWinRT.exe. | ||
#> | ||
[CmdletBinding(PositionalBinding = $false)] | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string] $Config | ||
) | ||
|
||
$TargetTripleArch = switch ($Env:PROCESSOR_ARCHITECTURE) { | ||
"amd64" { "x86_64" } | ||
"arm64" { "aarch64" } | ||
"x86" { "i686" } | ||
default { throw "Unsupported architecture: $Env:PROCESSOR_ARCHITECTURE" } | ||
} | ||
|
||
$BinaryDir = "$PSScriptRoot\.build\$TargetTripleArch-unknown-windows-msvc\$Config" | ||
if (-not (Test-Path $BinaryDir)) { | ||
throw "The binary directory does not exist: $BinaryDir" | ||
} | ||
|
||
& "$PSScriptRoot\.build\checkouts\swift-dotnetmetadata\WindowsMetadataCoreLibrary\Assemble.ps1" -OutputPath "$BinaryDir\mscorlib.winmd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters