
We will eventually need to build our own LLVM on Windows in order to build libclc and other bits which are required for the d3d12 build, as well as to be able to test SPIR-V/OpenCL on llvmpipe. Start doing this now, building into the base container, and exercise this by building llvmpipe under Windows. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4946>
20 lines
855 B
PowerShell
20 lines
855 B
PowerShell
# force the CA cert cache to be rebuilt, in case Meson tries to access anything
|
|
Write-Host "Refreshing Windows TLS CA cache"
|
|
(New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
|
|
|
|
Get-Date
|
|
Write-Host "Compiling Mesa"
|
|
$builddir = New-Item -ItemType Directory -Name "build"
|
|
Push-Location $builddir.FullName
|
|
cmd.exe /C 'C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson --default-library=static --buildtype=release -Db_vscrt=mt --cmake-prefix-path="C:\llvm-10" --pkg-config-path="C:\llvm-10\lib\pkgconfig;C:\llvm-10\share\pkgconfig;C:\spirv-tools\lib\pkgconfig" -Dllvm=true -Dshared-llvm=false -Dgallium-drivers=swrast -Dbuild-tests=true && ninja test'
|
|
$buildstatus = $?
|
|
Pop-Location
|
|
Remove-Item -Recurse -Path $builddir
|
|
|
|
Get-Date
|
|
|
|
if (!$buildstatus) {
|
|
Write-Host "Mesa build or test failed"
|
|
Exit 1
|
|
}
|