Skip to content

Conversation

@tomneko
Copy link

@tomneko tomneko commented Jan 22, 2026

This pull request fixes incorrect platform detection in setenvvar.bat when
building Firebird on modern Visual Studio environments (VS2022 Build Tools).

The current script relies on PROCESSOR_ARCHITECTURE, which always reports
AMD64 even when using the x86 Native Tools Command Prompt. As a result,
FB_TARGET_PLATFORM is always set to x64, and Win32 builds do not behave
correctly.

This patch replaces the detection logic with the %Platform% variable, which
correctly reports x86 or x64 depending on the toolchain.

Fixes #8865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant