Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 402596b

Browse files
committed
Add clang-cl jobs to azure
1 parent 5fc189d commit 402596b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.azure-pipelines/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,27 @@ jobs:
138138
win32:
139139
arch: win32
140140
buildOpt:
141+
installClang: no
141142
testRunTitle: '$(Build.SourceBranchName)-win32'
142143
testRunPlatform: win32
143144
win64:
144145
arch: amd64
145146
buildOpt: '-p x64'
147+
installClang: no
146148
testRunTitle: '$(Build.SourceBranchName)-win64'
147149
testRunPlatform: win64
150+
win32_clang_cl:
151+
arch: win32
152+
buildOpt: '"/p:CLToolExe=clang-cl.exe" "/p:CLToolPath=C:\Program Files (x86)\LLVM\bin"'
153+
installClang: yes
154+
testRunTitle: '$(Build.SourceBranchName)-clang_cl-win32'
155+
testRunPlatform: win32
156+
win64_clang_cl:
157+
arch: amd64
158+
buildOpt: '-p x64 "/p:CLToolExe=clang-cl.exe" "/p:CLToolPath=C:\Program Files\LLVM\bin"'
159+
installClang: yes
160+
testRunTitle: '$(Build.SourceBranchName)-clang_cl-win64'
161+
testRunPlatform: win64
148162
maxParallel: 4
149163

150164
steps:

.azure-pipelines/windows-steps.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ steps:
1212
Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals'
1313
displayName: Update build locations
1414

15+
- powershell: |
16+
(New-Object System.Net.WebClient).DownloadFile("https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/LLVM-9.0.1-win32.exe", "LLVM-win.exe")
17+
Start-Process .\LLVM-win.exe -ArgumentList '/S' -Wait
18+
displayName: Install clang on win32
19+
condition: and(eq('yes', variables['installClang']), eq('win32', variables['arch']))
20+
21+
- powershell: |
22+
(New-Object System.Net.WebClient).DownloadFile("https://github.com/llvm/llvm-project/releases/download/llvmorg-9.0.1/LLVM-9.0.1-win64.exe", "LLVM-win.exe")
23+
Start-Process .\LLVM-win.exe -ArgumentList '/S' -Wait
24+
displayName: Install clang on win64
25+
condition: and(eq('yes', variables['installClang']), eq('amd64', variables['arch']))
26+
1527
- script: PCbuild\build.bat -e $(buildOpt)
1628
displayName: 'Build CPython'
1729
env:

0 commit comments

Comments
 (0)