mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[bootstrap] Set-StrictMode to latest
This commit is contained in:
parent
90cf4371c3
commit
2d2ff28c77
@ -3,13 +3,12 @@ param(
|
|||||||
[ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
|
[ValidateNotNullOrEmpty()][string]$disableMetrics = "0",
|
||||||
[Parameter(Mandatory=$False)][string]$withVSPath = ""
|
[Parameter(Mandatory=$False)][string]$withVSPath = ""
|
||||||
)
|
)
|
||||||
|
Set-StrictMode -Version Latest
|
||||||
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
|
$scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
|
||||||
. "$scriptsDir\VcpkgPowershellUtils.ps1"
|
. "$scriptsDir\VcpkgPowershellUtils.ps1"
|
||||||
$vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root
|
$vcpkgRootDir = vcpkgFindFileRecursivelyUp $scriptsDir .vcpkg-root
|
||||||
Write-Verbose("vcpkg Path " + $vcpkgRootDir)
|
Write-Verbose("vcpkg Path " + $vcpkgRootDir)
|
||||||
|
|
||||||
|
|
||||||
$gitHash = "unknownhash"
|
$gitHash = "unknownhash"
|
||||||
$oldpath = $env:path
|
$oldpath = $env:path
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user