mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-25 00:15:11 +08:00
Visual Studio 2022 is the first msvc having natively support for
building and debugging ARM64 apps. [CI Platforms]
Provisioning needed to take new Get-CpuArchitecture
helpers.ps1 function into use in several installations.
Requirements for other branches
- Get-CpuArchitecture helpers.ps1 function
- Skip qtwebengine with Windows 11 ARM (QTBUG-124632)
List of excluded installations in Windows on ARM:
- Could be added later
- MinGW - QTQAINFRA-6079
- DirectX SDK for RTA
- libclang
- mcuexpresso
- fbx for msvc2022
- Ruby
- For python
- conan
- emsdk
- Not supported yet
- FFmpeg
- Msys2 (for FFmpeg QTBUG-124399)
- MySQL
- PostgreSQL
- Java JDK
- Strawberry Perl
Task-number: QTQAINFRA-6109
Task-number: QTQAINFRA-5855
Pick-to: 6.7
Change-Id: I4130e78add53f8a6e05eb41b7617b3f9ca802178
Reviewed-by: Simo Fält <simo.falt@qt.io>
43 lines
1.7 KiB
PowerShell
43 lines
1.7 KiB
PowerShell
# Copyright (C) 2019 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# Windows 7 does not have Get-ScheduledTask and Unregister-ScheduledTask
|
|
# thus needing its own version.
|
|
Write-Host "Disabling defragmentation"
|
|
$version = Get-CimInstance Win32_OperatingSystem | Select-Object -ExpandProperty Caption
|
|
if ($version -like '*Windows 7*'){
|
|
$pi = New-Object System.Diagnostics.ProcessStartInfo
|
|
$pi.FileName = "C:\Windows\System32\schtasks.exe"
|
|
$pi.RedirectStandardError = $true
|
|
$pi.UseShellExecute = $false
|
|
$pi.Arguments = "/Delete /TN `"\Microsoft\Windows\Defrag\ScheduledDefrag`" /F"
|
|
$prog = New-Object System.Diagnostics.Process
|
|
$prog.StartInfo = $pi
|
|
$prog.Start() | Out-Null
|
|
$err = $prog.StandardError.ReadToEnd()
|
|
$prog.WaitForExit()
|
|
if ($prog.ExitCode -eq 0){
|
|
Write-Host "Scheduled defragmentation removed"
|
|
} else {
|
|
if ($err -like '*cannot find the file*'){
|
|
Write-Host "No scheduled defragmentation task found"
|
|
exit 0
|
|
} else {
|
|
Write-Host "Error while deleting scheduled defragmentation task: $err"
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
try {
|
|
$state = (Get-ScheduledTask -ErrorAction Stop -TaskName "ScheduledDefrag").State
|
|
Write-Host "Scheduled defragmentation task found in state: $state"
|
|
}
|
|
catch {
|
|
Write-Host "No scheduled defragmentation task found"
|
|
exit 0
|
|
}
|
|
Write-Host "Unregistering scheduled defragmentation task"
|
|
Unregister-ScheduledTask -ErrorAction Stop -Confirm:$false -TaskName ScheduledDefrag
|
|
Write-Host "Scheduled Defragmentation task was cancelled"
|
|
}
|