Skip to content

fix: disable fatal warnings in native builds - #11

Merged
gabewillen merged 1 commit into
mainfrom
feat/typescript-owned-prebuild-pipeline
Aug 7, 2026
Merged

gabewillen merged 1 commit into
mainfrom
feat/typescript-owned-prebuild-pipeline

Conversation

@gabewillen

Copy link
Copy Markdown
Contributor

Uses core's explicit CORTEXT_WARNINGS_AS_ERRORS=OFF for Windows native addon builds while retaining /EHsc and the ARM clang-cl opt-in. This keeps warnings visible but avoids failing on external Eigen/hnswlib and known core diagnostics. Previous v1.3.3 run failed before collection/publication.

Copilot AI lite review requested due to automatic review settings August 7, 2026 10:25
@gabewillen
gabewillen merged commit 9d1ea40 into main Aug 7, 2026
6 checks passed
@gabewillen
gabewillen deleted the feat/typescript-owned-prebuild-pipeline branch August 7, 2026 10:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the Windows native-addon prebuild CMake configuration to keep warnings visible while avoiding “warnings as errors” failures (notably from external deps like Eigen/hnswlib), while preserving /EHsc and the existing clang-cl ARM64 opt-in behavior.

Changes:

  • For Windows builds, switches from hardcoded warning-disables in CMAKE_CXX_FLAGS to setting CORTEXT_WARNINGS_AS_ERRORS=OFF and keeping -DCMAKE_CXX_FLAGS=/EHsc.
  • Updates the corresponding test assertion to match the new Windows configure argument shape.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/prebuilds.test.mjs Updates the test regex to assert the new Windows CMake configure args are present in the build script source.
scripts/build-prebuild.mjs Changes Windows CMake configuration to disable warnings-as-errors via CORTEXT_WARNINGS_AS_ERRORS=OFF while retaining /EHsc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants