mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-21 12:26:36 +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>
(cherry picked from commit 230a73409a)
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
This commit is contained in:
committed by
Tony Sarajärvi
parent
b9e92adf59
commit
c8deeb3d05
@@ -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