Skip to content

fix: harden Windows AVX2 probe#828

Open
vamshikrishnaramasamy wants to merge 1 commit into
CodebuffAI:mainfrom
vamshikrishnaramasamy:fix/windows-avx2-baseline-probe
Open

fix: harden Windows AVX2 probe#828
vamshikrishnaramasamy wants to merge 1 commit into
CodebuffAI:mainfrom
vamshikrishnaramasamy:fix/windows-avx2-baseline-probe

Conversation

@vamshikrishnaramasamy

@vamshikrishnaramasamy vamshikrishnaramasamy commented Jun 30, 2026

Copy link
Copy Markdown

Fixes #822.

Updates the Windows AVX2 PowerShell probe used by the CLI launchers. The probe now uses the fully qualified DllImport attribute and ErrorAction Stop, making failures explicit so non-AVX2 machines are less likely to incorrectly proceed with the optimized win32-x64 binary instead of the baseline target.\n\nValidation:\n- node --check freebuff/cli/release/index.js\n- node --check cli/release/index.js\n- node --check cli/release-staging/index.js\n\nNote: I verified syntax locally on macOS, but could not run the Windows PowerShell probe directly on this machine.

@MaelllDev

Copy link
Copy Markdown

Thanks for the quick fix and for updating the documentation!

I’ll test it on my Windows 11 machine with an Intel Core i5-3570 (AVX, no AVX2) as soon as the new version is available and report back if everything works as expected.

@vamshikrishnaramasamy

Copy link
Copy Markdown
Author

Thanks! That would be super helpful. This PR should make the launcher choose the baseline binary more reliably on non AVX2 CPUs, so your i5 3570 is exactly the kind of machine worth validating on.

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.

Windows doesn't automatically fall back to the baseline binary on CPUs without AVX2

2 participants