8000 bpo-33351: Patches to build on clang-cl by isuruf · Pull Request #18371 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-33351: Patches to build on clang-cl #18371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add clang-cl jobs to azure
  • Loading branch information
isuruf committed Feb 6, 2020
commit 402596b25eba2832892be9838bd40f9abbb6088c
14 changes: 14 additions & 0 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,27 @@ jobs:
win32:
arch: win32
buildOpt:
installClang: no
testRunTitle: '$(Build.SourceBranchName)-win32'
testRunPlatform: win32
win64:
arch: amd64
buildOpt: '-p x64'
installClang: no
testRunTitle: '$(Build.SourceBranchName)-win64'
testRunPlatform: win64
win32_clang_cl:
arch: win32
buildOpt: '"/p:CLToolExe=clang-cl.exe" "/p:CLToolPath=C:\Program Files (x86)\LLVM\bin"'
installClang: yes
testRunTitle: '$(Build.SourceBranchName)-clang_cl-win32'
testRunPlatform: win32
win64_clang_cl:
arch: amd64
buildOpt: '-p x64 "/p:CLToolExe=clang-cl.exe" "/p:CLToolPath=C:\Program Files\LLVM\bin"'
installClang: yes
testRunTitle: '$(Build.SourceBranchName)-clang_cl-win64'
testRunPlatform: win64
maxParallel: 4

steps:
Expand Down
12 changes: 12 additions & 0 deletions .azure-pipelines/windows-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ steps:
Write-Host '##vso[task.setvariable variable=EXTERNALS_DIR]$(Build.BinariesDirectory)\externals'
displayName: Update build locations

- powershell: |
(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")
Start-Process .\LLVM-win.exe -ArgumentList '/S' -Wait
displayName: Install clang on win32
condition: and(eq('yes', variables['installClang']), eq('win32', variables['arch']))

- powershell: |
(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")
Start-Process .\LLVM-win.exe -ArgumentList '/S' -Wait
displayName: Install clang on win64
condition: and(eq('yes', variables['installClang']), eq('amd64', variables['arch']))

- script: PCbuild\build.bat -e $(buildOpt)
displayName: 'Build CPython'
env:
Expand Down
0