From c3405cd43cc7a880c36751c41a15e76c478fa9f1 Mon Sep 17 00:00:00 2001 From: chenweng Date: Mon, 24 Aug 2026 13:31:13 +0800 Subject: [PATCH] Qualcomm AI Engine Direct - Fix windows build script changing directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build.ps1 which launches Launch-VsDevShell.ps1 (the script Visual Studio ships) changes the current directory to VS's configured default projects location — which for most installs is %USERPROFILE%\source\repos. - Add -SkipAutomaticLocation to avoid this behavior. --- backends/qualcomm/scripts/build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/qualcomm/scripts/build.ps1 b/backends/qualcomm/scripts/build.ps1 index 455ceaac252..c8d3ce8f239 100644 --- a/backends/qualcomm/scripts/build.ps1 +++ b/backends/qualcomm/scripts/build.ps1 @@ -188,7 +188,7 @@ if (-not $SkipArm64Windows) { # Activate the VS environment for ARM64 MSVC toolchain $VsGenerator = Get-InstalledVsGenerator - & $VsGenerator.DevShell -Arch arm64 + & $VsGenerator.DevShell -Arch arm64 -SkipAutomaticLocation Assert-GeneratorSupported $VsGenerator.Generator Prepare-BuildDir $BuildRoot @@ -335,7 +335,7 @@ if (-not $SkipX86Windows) { # Activate the VS environment for AMD64 MSVC toolchain $VsGenerator = Get-InstalledVsGenerator - & $VsGenerator.DevShell -Arch amd64 + & $VsGenerator.DevShell -Arch amd64 -SkipAutomaticLocation Assert-GeneratorSupported $VsGenerator.Generator Prepare-BuildDir $BuildRoot