Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update preconfigure.bat #590

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions preconfigure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ if %ERRORLEVEL% == 0 (
)
git pull

set VSARCH=x64
set PLATFORM=x64

REM VisualStudio uses HOST_TARGET syntax, so: x86_amd64 means 32bit compiler for 64bit target
REM: Hosts: x86 amd64 x64
REM: Targets: x86 amd64 x64 arm arm64

:: Set VSARCH based on command line input or system architecture
if "%*" == "x86" (
set VSARCH=x86
) ELSE (
set VSARCH=x86_amd64
) else if "%*" == "x64" (
set VSARCH=x64
) else (
:: Automatically determine the architecture if no argument is provided
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
set VSARCH=x64
) else (
set VSARCH=x86
)
)
set VSARCH=x86_amd64

echo === Finding Visual Studio...
cl --help > NUL 2> NUL
Expand Down
Loading