Skip to content

fix: enable Windows C++ exception unwinding - #10

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

Adds /EHsc to Windows native addon CMake flags. The v1.3.3 matrix reached compilation but MSVC treated C4530 as an error in standard headers/core sources. This follow-up fixes both Windows targets; no artifacts were published from the failed run.

Copilot AI lite review requested due to automatic review settings August 7, 2026 10:05

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

This PR addresses Windows native addon builds failing under MSVC due to missing C++ exception unwinding semantics by adding /EHsc to the CMake C++ flags used by the prebuild script, and updating the corresponding regression test to assert the new flag is present.

Changes:

  • Add /EHsc to the Windows -DCMAKE_CXX_FLAGS=... passed by scripts/build-prebuild.mjs.
  • Update tests/prebuilds.test.mjs to assert the build script includes /EHsc in the Windows CMake flags.

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 assertion to include /EHsc in the expected Windows CMake flags string.
scripts/build-prebuild.mjs Adds /EHsc to the Windows CMake C++ flags to prevent MSVC C4530 failures under warning-as-error settings.

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

@gabewillen
gabewillen merged commit b8010ca into main Aug 7, 2026
6 checks passed
@gabewillen
gabewillen deleted the feat/typescript-owned-prebuild-pipeline branch August 7, 2026 10:06
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