Skip to content

Commit ff643a7

Browse files
refactor: improve variable naming and remove redundant compiler flag
Co-authored-by: supervoidcoder <88671013+supervoidcoder@users.noreply.github.com>
1 parent 93a2620 commit ff643a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
shell: cmd
2525
run: |
2626
REM Find vcvarsall.bat dynamically - check both possible vswhere.exe locations
27-
set "VSWHERE_X86=C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
28-
set "VSWHERE_ARM64=C:\Program Files\Microsoft Visual Studio\Installer\vswhere.exe"
27+
set "VSWHERE_LEGACY=C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
28+
set "VSWHERE_NATIVE=C:\Program Files\Microsoft Visual Studio\Installer\vswhere.exe"
2929
30-
if exist "%VSWHERE_X86%" (
31-
set "VSWHERE_PATH=%VSWHERE_X86%"
32-
) else if exist "%VSWHERE_ARM64%" (
33-
set "VSWHERE_PATH=%VSWHERE_ARM64%"
30+
if exist "%VSWHERE_LEGACY%" (
31+
set "VSWHERE_PATH=%VSWHERE_LEGACY%"
32+
) else if exist "%VSWHERE_NATIVE%" (
33+
set "VSWHERE_PATH=%VSWHERE_NATIVE%"
3434
) else (
3535
echo Error: vswhere.exe not found in either location.
3636
exit /b 1
@@ -50,7 +50,7 @@ jobs:
5050
5151
set outName=win-witr-${{ matrix.arch }}.exe
5252
echo Compiling %outName%...
53-
cl /O2 /Ot /GL /std:c++20 /EHsc main.cpp /DUNICODE /D_UNICODE /Fe:%outName%
53+
cl /O2 /GL /std:c++20 /EHsc main.cpp /DUNICODE /D_UNICODE /Fe:%outName%
5454
if errorlevel 1 exit /b 1
5555
5656
- name: Run Tests for ${{ matrix.arch }}

0 commit comments

Comments
 (0)