This commit is contained in:
Gator96100 2020-10-05 21:11:46 +02:00
parent d8378cee31
commit fc7ec34ca3

View file

@ -53,6 +53,8 @@ clone_script:
Write-Host "[ OK ]" -ForegroundColor Green
}
$env:wsl_installed = false
$WSLjob = Start-Job -Name WSLInstall -ScriptBlock {
Function WSLExec($Text, $Cmd) {
Write-Host "$Text"
@ -68,6 +70,7 @@ clone_script:
WSLExec "WSL install..." "sudo apt-get -y install --reinstall --no-install-recommends git ca-certificates build-essential pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev qtbase5-dev cmake 1>/dev/null"
WSLExec "WSL QT fix..." "sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5"
Add-AppveyorMessage -Message "WSL setup took $(([System.Environment]::TickCount-$WSLInstallTime) / 1000) sec" -Category Information
$env:wsl_installed = true
}
$env:PSInstallTime=[System.Environment]::TickCount
@ -235,9 +238,9 @@ build_script:
}
#WSL: wait for installation to finish
Receive-Job -Wait -Name WSLInstall -ErrorAction SilentlyContinue
Add-AppveyorMessage -Message "WSL start" -Category Information
while(!$env:wsl_installed) {
Start-Sleep -s 5
}
#Windows Subsystem for Linux (WSL)
Write-Host "---------- WSL make ----------" -ForegroundColor Yellow