Skip to content

Commit 00d8227

Browse files
authored
Remove dead code from make.ps1 (IronLanguages#2007)
1 parent d8f707d commit 00d8227

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

make.ps1

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,6 @@ $ErrorActionPreference="Continue"
1717

1818
$_BASEDIR = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
1919

20-
function EnsureMSBuild() {
21-
$_VSWHERE = [System.IO.Path]::Combine(${env:ProgramFiles(x86)}, 'Microsoft Visual Studio\Installer\vswhere.exe')
22-
$_VSINSTPATH = ''
23-
24-
if([System.IO.File]::Exists($_VSWHERE)) {
25-
$_VSINSTPATH = & "$_VSWHERE" -latest -requires Microsoft.Component.MSBuild -property installationPath
26-
} else {
27-
Write-Error "Visual Studio 2022 17.14.26 or later is required"
28-
Exit 1
29-
}
30-
31-
if(-not [System.IO.Directory]::Exists($_VSINSTPATH)) {
32-
Write-Error "Could not determine installation path to Visual Studio"
33-
Exit 1
34-
}
35-
36-
if([System.IO.File]::Exists([System.IO.Path]::Combine($_VSINSTPATH, 'MSBuild\Current\Bin\MSBuild.exe'))) {
37-
$_MSBUILDPATH = [System.IO.Path]::Combine($_VSINSTPATH, 'MSBuild\Current\Bin\')
38-
if ($env:PATH -split ';' -notcontains $_MSBUILDPATH) {
39-
$env:PATH = [String]::Join(';', $env:PATH, $_MSBUILDPATH)
40-
}
41-
}
42-
}
43-
4420
function Main([String] $target, [String] $configuration) {
4521
# verify that the DLR submodule has been initialized
4622
if(![System.Linq.Enumerable]::Any([System.IO.Directory]::EnumerateFileSystemEntries([System.IO.Path]::Combine($_BASEDIR, "src/dlr")))) {
@@ -75,7 +51,7 @@ function GenerateRunSettings([String] $framework, [String] $platform, [String] $
7551
$doc.AppendChild($dec) | Out-Null
7652

7753
$runSettings = $doc.CreateElement("RunSettings")
78-
54+
7955
$runConfiguration = $doc.CreateElement("RunConfiguration")
8056
$runSettings.AppendChild($runConfiguration) | Out-Null
8157
if ($platform) {

src/dlr

Submodule dlr updated 1 file

0 commit comments

Comments
 (0)