Skip to content

introduce HASHLIB_X86_64_ASM define for inline assembly support#55

Merged
Xor-el merged 1 commit into
masterfrom
fix/introduce-hashlib-x86-64-asm-define
Mar 27, 2026
Merged

introduce HASHLIB_X86_64_ASM define for inline assembly support#55
Xor-el merged 1 commit into
masterfrom
fix/introduce-hashlib-x86-64-asm-define

Conversation

@Xor-el
Copy link
Copy Markdown
Owner

@Xor-el Xor-el commented Mar 27, 2026

Separate architecture detection (HASHLIB_X86_64) from inline assembly availability (HASHLIB_X86_64_ASM). Delphi compiler only supports inline ASM on Windows, so HASHLIB_X86_64_ASM is gated behind CPUX64 + MSWINDOWS for Delphi, while FPC sets it unconditionally on CPUX64 since it supports ASM on all platforms. All SIMD code and dispatch logic now uses the new define, fixing Delphi Linux x86-64 compilation (E1025 Unsupported language feature: 'ASM').

closes #54

Separate architecture detection (HASHLIB_X86_64) from inline assembly
availability (HASHLIB_X86_64_ASM). Delphi compiler only supports inline ASM on
Windows, so HASHLIB_X86_64_ASM is gated behind CPUX64 + MSWINDOWS for
Delphi, while FPC sets it unconditionally on CPUX64 since it supports
ASM on all platforms. All SIMD code and dispatch logic now uses the new
define, fixing Delphi Linux x86-64 compilation (E1025 Unsupported
language feature: 'ASM').
@Xor-el Xor-el merged commit f4e7102 into master Mar 27, 2026
8 checks passed
@Xor-el Xor-el deleted the fix/introduce-hashlib-x86-64-asm-define branch March 27, 2026 19:08
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.

Can not compile on linux

1 participant