Skip to content

Commit 05c8502

Browse files
committed
workflows/llvm-project-tests: Workaround an issue with lldb builds on Windows
For some reason cmake started selecting a 32-bit version of python on Windows instead of the 64-bit version when building windows. Explicitly setting the default python to 3.10 fixes this problem. Reviewed By: thieta Differential Revision: https://reviews.llvm.org/D132280 (cherry picked from commit 99020b3)
1 parent 0bc3cbb commit 05c8502

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/llvm-project-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
uses: llvm/actions/setup-windows@main
4747
with:
4848
arch: amd64
49+
# On Windows, starting with win19/20220814.1, cmake choose the 32-bit
50+
# python3.10.6 libraries instead of the 64-bit libraries when building
51+
# lldb. Using this setup-python action to make 3.10 the default
52+
# python fixes this.
53+
- name: Setup Python
54+
uses: actions/setup-python@v4
55+
with:
56+
python-version: '3.10'
4957
- name: Install Ninja
5058
uses: llvm/actions/install-ninja@main
5159
# actions/checkout deletes any existing files in the new git directory,

0 commit comments

Comments
 (0)