mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 06:00:25 +02:00
Update NativeBuildFlags.ps1
This commit is contained in:
1 parent
2794024d3a
commit
eb1721fd72
1 file changed
+3
-1
@@ -42,7 +42,9 @@ function Get-MkwToolchainPath([string]$ToolchainRoot) {
|
|||||||
|
|
||||||
function Get-MkwShellSafeToolchainRoot([string]$ToolchainRoot) {
|
function Get-MkwShellSafeToolchainRoot([string]$ToolchainRoot) {
|
||||||
if ([string]::IsNullOrWhiteSpace($ToolchainRoot)) { throw 'A toolchain root is required.' }
|
if ([string]::IsNullOrWhiteSpace($ToolchainRoot)) { throw 'A toolchain root is required.' }
|
||||||
$full = [IO.Path]::GetFullPath($ToolchainRoot).TrimEnd('\')
|
$full = [IO.Path]::GetFullPath($ToolchainRoot)
|
||||||
|
# A drive root keeps its separator: "C:" is relative to the current directory on that drive.
|
||||||
|
if ($full -ne [IO.Path]::GetPathRoot($full)) { $full = $full.TrimEnd('\') }
|
||||||
if ($full -notmatch '[()&^%!]') { return $full }
|
if ($full -notmatch '[()&^%!]') { return $full }
|
||||||
|
|
||||||
$sha = [Security.Cryptography.SHA256]::Create()
|
$sha = [Security.Cryptography.SHA256]::Create()
|
||||||
|
|||||||
Reference in new issue
Block a user