Skip to content

Commit ba41ec2

Browse files
committed
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 <[email protected]>
1 parent 30bcb51 commit ba41ec2

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

coin/fetch_libclang_arm64.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (C) 2024 The Qt Company Ltd.
2+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3+
# Download the file
4+
5+
wget https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_19.1.0-based-windows-vs2022_arm64.7z -o libclang.7z
6+
# Unzip the contents to /home/qt
7+
7z x libclang.7z -o/utils
8+
Remove-Item libclang.7z

coin/instructions/common_environment.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,21 @@ instructions:
236236
equals_value: AARCH64
237237
userMessageOnFailure: >
238238
Failed to download libclang from Qt servers
239+
- type: ExecuteCommand
240+
command: ["powershell", "-ExecutionPolicy", "Bypass", "-File", "coin\\fetch_libclang_arm64.ps1"]
241+
maxTimeInSeconds: 14400
242+
maxTimeBetweenOutput: 1200
243+
enable_if:
244+
condition: and
245+
conditions:
246+
- condition: property
247+
property: host.os
248+
equals_value: Windows
249+
- condition: property
250+
property: host.arch
251+
equals_value: AARCH64
252+
userMessageOnFailure: >
253+
Failed to download libclang from Qt servers
239254
- type: EnvironmentVariable
240255
variableName: LLVM_INSTALL_DIR
241256
variableValue: "/home/qt/libclang"
@@ -248,6 +263,18 @@ instructions:
248263
- condition: property
249264
property: host.os
250265
equals_value: Linux
266+
- type: EnvironmentVariable
267+
variableName: LLVM_INSTALL_DIR
268+
variableValue: "\\utils\\libclang"
269+
enable_if:
270+
condition: and
271+
conditions:
272+
- condition: property
273+
property: target.arch
274+
equals_value: AARCH64
275+
- condition: property
276+
property: host.os
277+
equals_value: Windows
251278
- type: EnvironmentVariable
252279
variableName: interpreter
253280
variableValue: "python3.11"

0 commit comments

Comments
 (0)