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.

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

1 participant