Build script improvements

Made sure devshell only loads up the msvc env once.
This commit is contained in:
Edward R. Gonzalez 2023-08-20 22:39:46 -04:00
parent b3f0c2734f
commit 7d1c499e7b
2 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,6 @@
# It will most likely need a partial rewrite to segment the build process into separate script invocations based on the OS.
# That or just rewrite it in an sh script and call it a day.
cls
Import-Module ./helpers/target_arch.psm1
$devshell = Join-Path $PSScriptRoot 'helpers/devshell.ps1'
$path_root = git rev-parse --show-toplevel

View File

@ -1,3 +1,7 @@
if ($env:VCINSTALLDIR) {
return
}
$ErrorActionPreference = "Stop"
# Use vswhere to find the latest Visual Studio installation