aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2025-02-17 14:11:46 +0200
committerSimo Fält <simo.falt@qt.io>2025-03-14 13:04:47 +0200
commitba41ec2ec76c6af84a1ac42ff02f2fd518ab0db3 (patch)
tree53507f6f683c767e63f1cd3da3d6957224feb7b3
parent30bcb51d40e99e7c089192b6bf5015d13de0f979 (diff)
Install libclang for Windows arm config
There is only static libs provisioned on VM and it seems that we can't build shiboken6 with those. Change-Id: I04fd633405cda0c11efab5d1f2cbd532a0f2b3c9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
-rw-r--r--coin/fetch_libclang_arm64.ps18
-rw-r--r--coin/instructions/common_environment.yaml27
2 files changed, 35 insertions, 0 deletions
diff --git a/coin/fetch_libclang_arm64.ps1 b/coin/fetch_libclang_arm64.ps1
new file mode 100644
index 000000000..124041157
--- /dev/null
+++ b/coin/fetch_libclang_arm64.ps1
@@ -0,0 +1,8 @@
+# Copyright (C) 2024 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
+# Download the file
+
+wget https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_19.1.0-based-windows-vs2022_arm64.7z -o libclang.7z
+# Unzip the contents to /home/qt
+7z x libclang.7z -o/utils
+Remove-Item libclang.7z
diff --git a/coin/instructions/common_environment.yaml b/coin/instructions/common_environment.yaml
index 7663014e2..ad3123f9f 100644
--- a/coin/instructions/common_environment.yaml
+++ b/coin/instructions/common_environment.yaml
@@ -236,6 +236,21 @@ instructions:
equals_value: AARCH64
userMessageOnFailure: >
Failed to download libclang from Qt servers
+ - type: ExecuteCommand
+ command: ["powershell", "-ExecutionPolicy", "Bypass", "-File", "coin\\fetch_libclang_arm64.ps1"]
+ maxTimeInSeconds: 14400
+ maxTimeBetweenOutput: 1200
+ enable_if:
+ condition: and
+ conditions:
+ - condition: property
+ property: host.os
+ equals_value: Windows
+ - condition: property
+ property: host.arch
+ equals_value: AARCH64
+ userMessageOnFailure: >
+ Failed to download libclang from Qt servers
- type: EnvironmentVariable
variableName: LLVM_INSTALL_DIR
variableValue: "/home/qt/libclang"
@@ -249,6 +264,18 @@ instructions:
property: host.os
equals_value: Linux
- type: EnvironmentVariable
+ variableName: LLVM_INSTALL_DIR
+ variableValue: "\\utils\\libclang"
+ enable_if:
+ condition: and
+ conditions:
+ - condition: property
+ property: target.arch
+ equals_value: AARCH64
+ - condition: property
+ property: host.os
+ equals_value: Windows
+ - type: EnvironmentVariable
variableName: interpreter
variableValue: "python3.11"
enable_if: