build changes

This commit is contained in:
nexusverypro
2026-07-03 22:22:19 +01:00
parent 35f52a4115
commit 3c55bd62e1
4 changed files with 28 additions and 7 deletions

View File

@@ -29,7 +29,6 @@ switch ($Target) {
"msvc" {
$VsPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat"
if (-not (Test-Path $VsPath)) {
$VsPath = "${env:ProgramFiles}\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
}
@@ -38,12 +37,6 @@ switch ($Target) {
throw "MSVC environment not found. Install Visual Studio C++ build tools."
}
cmd /c "`"$VsPath`" && set" | ForEach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Item -Path "env:$($matches[1])" -Value $matches[2]
}
}
$Generator = "Visual Studio 17 2022"
$Arch = "x64"
$ExtraArgs += "-A $Arch"