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
Copy link
Copy Markdown
Member

@hvlad hvlad Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this variable is defined by VS 2017 and VS 2022 and not defined by VS 2013.
Official compiler for FB3 is VS 2010.
Afraid this patch can be applied to the FB4+ only.

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