Skip to content

Commit 7af5c51

Browse files
[fixup] Tweak to avoid hashtable oddities
1 parent 33456a7 commit 7af5c51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/ci.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ $root = Split-Path -Parent $this_dir
3030
Write-Verbose "Loading uv environment..."
3131
$uv_env = Get-UvEnvironment -ArgumentList "--group=build"
3232
Write-Verbose "Loading MSVS environment..."
33-
$vs_env = Invoke-WithEnvironment $uv_env {
33+
[hashtable]$uv_vs_env = Invoke-WithEnvironment $uv_env {
3434
Get-VsEnvironment -Version:$VSVersion -TargetArch:$TargetArch
3535
}
3636
# Set the CC and CXX env vars to point to MSVC to prevent Ninja generation from
3737
# attempting to use MinGW GCC instead, even if its available on the path
38-
$vs_env["CC"] = "cl.exe"
39-
$vs_env["CXX"] = "cl.exe"
38+
$uv_vs_env.Add("CC", "cl.exe")
39+
$uv_vs_env.Add("CXX", "cl.exe")
4040

41-
Invoke-WithEnvironment $vs_env {
41+
Invoke-WithEnvironment $uv_vs_env {
4242
$settings = @{
4343
AMONGOC_USE_PMM = $UseVcpkg;
4444
BUILD_TESTING = $Test;

0 commit comments

Comments
 (0)