mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-23 05:16:49 +08:00
Provision sed for windows 10
Sed is needed by webassembly build. Cannot use sed from msys as having msys bin folder in path breaks webassembly build. Task-number: QTQAINFRA-2835 Change-Id: I6ad06f0a952a0d8bc5d21e62f8c2cef70f40c618 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
committed by
Jani Heikkinen
parent
3e6a04c09d
commit
230a73409a
@@ -136,6 +136,18 @@ function Add-Path
|
||||
$Env:PATH = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
}
|
||||
|
||||
function Prepend-Path
|
||||
{
|
||||
Param (
|
||||
[string]$Path
|
||||
)
|
||||
Write-Host "Adding $Path to Path"
|
||||
|
||||
$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
[Environment]::SetEnvironmentVariable("Path", "$Path;" + $oldPath, [EnvironmentVariableTarget]::Machine)
|
||||
$Env:PATH = [System.Environment]::GetEnvironmentVariable('Path', 'Machine')
|
||||
}
|
||||
|
||||
function Set-EnvironmentVariable
|
||||
{
|
||||
Param (
|
||||
|
||||
Reference in New Issue
Block a user