mirror of
https://git.recroomarchive.org/Radium/libradhook.git
synced 2026-08-07 09:10:59 +00:00
build changes
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user