1
0
mirror of https://github.com/Ed94/gencpp.git synced 2025-07-07 22:25:45 -07:00

MSVC in latest script works

Clang is having issues.
This commit is contained in:
2023-08-19 17:08:13 -04:00
parent 32a910515e
commit 8985f0a4d9
4 changed files with 140 additions and 54 deletions
project
components
dependencies
scripts

@ -1,6 +1,6 @@
param (
[ValidateSet("x64", "x86", "arm", "arm64")]
[string]$arch = "x64"
[ValidateSet("amd64", "x86", "arm", "arm64")]
[string]$arch = "amd64"
)
$ErrorActionPreference = "Stop"
@ -23,9 +23,9 @@ if ( -not (Test-Path $vs_devshell) ) {
}
# Set the target architecture based on the parameter
$env:VSCMD_ARG_TGT_ARCH=$arch
# $env:VSCMD_ARG_TGT_ARCH=$arch
# Launch the Visual Studio Developer Shell
Push-Location
& $vs_devshell @args
& $vs_devshell -Arch amd64
Pop-Location