Skip to content

Commit

Permalink
Merge branch 'dev/kupu/fix_debug_oss_build' into 'main'
Browse files Browse the repository at this point in the history
Fix debug_oss_debug build in CI

See merge request lightspeedrtx/dxvk-remix-nv!1031
  • Loading branch information
nvzkupu committed Oct 3, 2024
2 parents 37886d2 + 042f941 commit 3b9bc93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build_common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,13 @@ If (Test-Path env:LIBPATH) {
Push-Location "${vsPath}\VC\Auxiliary\Build"
cmd /c "vcvarsall.bat x64&set" |
ForEach-Object {
# Due to some odd behavior with how powershell core (pwsh) (powershell 5.X not tested) interprets a specific
# predefined gitlab CI variable (in this case CI_MERGE_REQUEST_DESCRIPTION) with a value that includes ===
# The `Contains` method is used to ignore the string === to prevent pwsh from erroneously encountering an error.
If ($_ -match "=") {
$v = $_.split("="); Set-Item -Force -Path "ENV:\$($v[0])" -Value "$($v[1])"
If (-not ($_.Contains('==='))) {
$v = $_.split("="); Set-Item -Force -Path "ENV:\$($v[0])" -Value "$($v[1])"
}
}
}
Pop-Location
Expand Down

0 comments on commit 3b9bc93

Please sign in to comment.