Skip to content

Fix BLAKE2 with scoped when nimvm branches - #101

Open
ringabout wants to merge 2 commits into
cheatfate:masterfrom
ringabout:fix-when-nimvm-blake2-scope
Open

Fix BLAKE2 with scoped when nimvm branches#101
ringabout wants to merge 2 commits into
cheatfate:masterfrom
ringabout:fix-when-nimvm-blake2-scope

Conversation

@ringabout

@ringabout ringabout commented Aug 14, 2026

Copy link
Copy Markdown

Nim PR nim-lang/Nim#26051 isolates declarations analyzed in retained when nimvm branches. BLAKE2 defines its VM and native round implementations inside that conditional and calls them afterward, which now correctly fails with an undeclared identifier.

Keep both implementations at module scope and select the procedure-based VM implementation inside each transform. The native backend retains the template-based unrolling.

@ringabout

Copy link
Copy Markdown
Author

follows up #83

@ringabout

Copy link
Copy Markdown
Author

There seems to have a pre-existing nimble regression on win32

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