Provisioning: Add libclang for Windows on ARM

Libclang is needed for QDoc.

Adding support for WoA (arch=arm64) also introduced a need
to change archVer parameter from Integer to a string.

Task-number: QTBUG-129256
Change-Id: I13f15925a7639c6f926c564146fbbc88f73fff8f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 1fe16f55f0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tero Heikkinen
2024-09-24 23:53:24 +03:00
committed by Qt Cherry-pick Bot
parent 44717fb041
commit 7fbb1c2aec
2 changed files with 19 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
param(
[Int32]$archVer=32,
[string]$archVer="32",
[string]$toolchain="vs2019",
[bool]$setDefault=$true
)
@@ -36,8 +36,21 @@ function install() {
$toolchainSuffix = ""
if ( $toolchain -eq "vs2022" ) {
if ( $archVer -eq "64" ) {
$sha1 = "7e51f0eabdfe8eea17aaf1dce7b2ffe1ea064f66"
}
elseif ( $archVer -eq "arm64" ) {
$sha1 = "986d4d0f253de505ef499345238c101dac1ca3a6"
}
else {
$sha1 = ""
}
$toolchainSuffix = "msvc"
}
if ( $toolchain -eq "vs2019" ) {
if ( $archVer -eq 64 ) {
if ( $archVer -eq "64" ) {
$sha1 = "8e0862386caef7e4537599ef980eeb6ebee8767f"
}
else {
@@ -47,7 +60,7 @@ if ( $toolchain -eq "vs2019" ) {
}
if ( $toolchain -eq "mingw" ) {
if ( $archVer -eq 64 ) {
if ( $archVer -eq "64" ) {
$sha1 = "a23cbb0822cf2eb8d1cecf26e8614ef37a7611e3"
}
else {
@@ -58,7 +71,7 @@ if ( $toolchain -eq "mingw" ) {
if ( $toolchain -eq "llvm-mingw" ) {
if ( $archVer -eq 64 ) {
if ( $archVer -eq "64" ) {
$sha1 = "9c34f99eb575b42c2befe27829c08e6d3f01ae58"
}
else {

View File

@@ -0,0 +1,2 @@
# Do not set the default LLVM_INSTALL_DIR for mingw, leave it with msvc for compat
. "$PSScriptRoot\..\common\windows\libclang.ps1" arm64 vs2022