Skip to content

Commit dfb3119

Browse files
build: Windows Cmake Automation Tool Update (#8214)
* GUI Update Implements Debug Now uses UI instead of text input when used as external tool with "Use Output window" enabled. * Linux Support Fixed the WSL pipeline with the new paradigm Debug functional and tested Updated docs * style(autofix.ci): automated formatting * Fix built stall Just provides feedback It was building, but might confuse the user into thinking it stopped --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent f1276e8 commit dfb3119

File tree

3 files changed

+662
-136
lines changed

3 files changed

+662
-136
lines changed

cmake-build.bat

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
@echo off
2-
rem cmake-build.bat — Launch cmake-build.ps1, auto-elevating to admin if needed.
2+
rem cmake-build.bat — Launch cmake-build.ps1.
33
rem
44
rem Usage:
55
rem cmake-build.bat — interactive menus
66
rem cmake-build.bat -Platform win -Preset 1 -BuildType 2 -Action build — Windows MSVC build
77
rem cmake-build.bat -Platform linux -Preset linux-slim -Action build — Linux (WSL) build
88
rem cmake-build.bat -Platform linux -Preset 2 -Action run -RunArgs "[map]" — run with filter
9+
rem cmake-build.bat -Platform win -Preset 1 -BuildType 2 -Action debug — run under VS debugger
10+
rem
11+
rem Windows builds run at standard integrity level (required for VS debugger auto-attach via COM ROT).
12+
rem Linux/WSL builds auto-elevate: the script spawns an elevated PowerShell window for WSL operations.
913

10-
net session >nul 2>&1
11-
if %errorlevel% equ 0 goto :run
12-
13-
echo Set UAC = CreateObject("Shell.Application") > "%temp%\~elevate.vbs"
14-
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\~elevate.vbs"
15-
cscript //nologo "%temp%\~elevate.vbs"
16-
del "%temp%\~elevate.vbs"
17-
exit /b
18-
19-
:run
20-
powershell -ExecutionPolicy Bypass -File "%~dp0cmake-build.ps1" %*
21-
pause
14+
powershell -Sta -ExecutionPolicy Bypass -File "%~dp0cmake-build.ps1" %*

0 commit comments

Comments
 (0)