Skip to content
Open
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
11 changes: 6 additions & 5 deletions builds/win32/setenvvar.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

@echo off

::set FB_PROCESSOR_ARCHITECTURE=AMD64
:: 1. Determine target platform
if "%Platform%"=="x86" set FB_TARGET_PLATFORM=Win32
if "%Platform%"=="x64" set FB_TARGET_PLATFORM=x64

:: Default target CPU architecture is the native environment
if NOT DEFINED FB_PROCESSOR_ARCHITECTURE (
set FB_PROCESSOR_ARCHITECTURE=%PROCESSOR_ARCHITECTURE%
)
:: 2.If Platform variable is not set, use PROCESSOR_ARCHITECTURE
if "%FB_TARGET_PLATFORM%"=="Win32" set FB_PROCESSOR_ARCHITECTURE=x86
if "%FB_TARGET_PLATFORM%"=="x64" set FB_PROCESSOR_ARCHITECTURE=AMD64

::===============================
::Set up the compiler environment
Expand Down