New build script works for clang and msvc!

Need to update singleheader and test to use it.
This commit is contained in:
2023-08-19 21:33:01 -04:00
parent 8985f0a4d9
commit 11679ba8b4
4 changed files with 123 additions and 133 deletions

View File

@ -1,8 +1,3 @@
param (
[ValidateSet("amd64", "x86", "arm", "arm64")]
[string]$arch = "amd64"
)
$ErrorActionPreference = "Stop"
# Use vswhere to find the latest Visual Studio installation
@ -22,10 +17,7 @@ if ( -not (Test-Path $vs_devshell) ) {
exit 1
}
# Set the target architecture based on the parameter
# $env:VSCMD_ARG_TGT_ARCH=$arch
# Launch the Visual Studio Developer Shell
Push-Location
& $vs_devshell -Arch amd64
Pop-Location
& $vs_devshell @args
Pop-Location