You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.ps1
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,13 @@ param(
84
84
$ErrorActionPreference="Stop"
85
85
Set-StrictMode-Version 3.0
86
86
87
+
# Avoid being run in a "Developer" shell since this script launches its own sub-shells targeting
88
+
# different architectures, and these variables cause confusion.
89
+
if ($env:VSCMD_ARG_HOST_ARCH-ne$null-or$env:VSCMD_ARG_TGT_ARCH-ne$null)
90
+
{
91
+
throw"At least one of VSCMD_ARG_HOST_ARCH and VSCMD_ARG_TGT_ARCH is set, which is incompatible with this script. Likely need to run outside of a Developer shell."
92
+
}
93
+
87
94
# Prevent elsewhere-installed swift modules from confusing our builds.
0 commit comments