summaryrefslogtreecommitdiff
path: root/.gitlab/ci/clang-env.ps1
blob: 451fca37011bc99fca35136b61406d20e3e53836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Invoke-Expression -Command .gitlab/ci/clang.ps1
Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1

$pwdpath = $pwd.Path
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\llvm\bin;$env:PATH"

if ("$env:CMAKE_CI_BUILD_NAME" -match "(^|_)gnu(_|$)") {
  $env:CC  = "clang"
  $env:CXX = "clang++"
  clang --version
} else {
  $env:CC  = "clang-cl"
  $env:CXX = "clang-cl"
  clang-cl --version
}