Uh oh!
There was an error while loading. Please reload this page.
Fix Windows/UWP CI build (MSVC C4875 + JSI include path) - #185
Fix Windows/UWP CI build (MSVC C4875 + JSI include path)#185matthargett wants to merge 3 commits into
Conversation
…uild windows-latest's newer MSVC promotes C4875 (deprecated non-string [[gsl::suppress]] arg) from the vendored GSL headers to an error under /WX, breaking every Win32/UWP build (pre-existing on main). Suppress the dependency-side deprecation.
…ng JSI C1083) The JSI napi target only had its own include/ on the include path, but napi.h includes the shared <napi/js_native_api_types.h> from Core/Node-API/Include/Shared (not built when the engine is JSI). Add that directory so the JSI backend compiles. Pre-existing failure (JSI was red on main with the same C1083); unblocks Win32/UWP JSI.
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Update CMake configuration to fix JSI Node-API builds by adding missing shared header include paths and to keep Windows CI green by suppressing a new MSVC warning coming from vendored GSL headers.
Changes:
- Add
Core/Node-API/Include/Sharedto the include path for thenapitarget in the Node-API-JSI build. - Suppress MSVC warning C4875 globally to avoid warnings-as-errors failures on newer toolchains.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| Core/Node-API-JSI/CMakeLists.txt | Adds missing shared include directory so JSI builds can find js_native_api_types.h. |
| CMakeLists.txt | Adds MSVC compile option to suppress C4875 emitted by vendored GSL headers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…LIC for JSI includes
[Commented by Copilot on behalf of @bghgary] Closing — both fixes have been overtaken. C4875. Real when you filed this on June 5. GSL v4.2.2 added a stringizing branch guarded on JSI include path. Node-API-JSI also has no C entry points — no #116's actual blocker isn't JSI-specific.
|
Two pre-existing build-config fixes that unbreak the Win32/UWP CI; no functional changes. We hit these
while expanding N-API version support (cf. #116, #183) but they're independent of that work.
C4875: a newer MSVC promotes the deprecated non-string-literal[[gsl::suppress]]argument(from the vendored GSL headers) to an error under
/WX, breaking every Win32/UWP build. Suppress it.Core/Node-API/Include/Sharedto the JSInapitarget sonapi.hcan find<napi/js_native_api_types.h>(was failing withC1083).Landing sequence
Inter-related N-API PRs; intended order (✅ done / ⏳ pending):
napi_*).napi_*via the sharedlibnapi.sofrom the step above).Motivating RFCs: rebeckerspecialties#6 (jsc-android → maintained JSC) · rebeckerspecialties#7 (WebWorker via N-API → Factotum into BabylonNative).