Skip to content

Fix mozjs_sys prebuilt library#756

Merged
jschwe merged 1 commit into
servo:mainfrom
jschwe:fix_prebuilt_mozjs
Jun 12, 2026
Merged

Fix mozjs_sys prebuilt library#756
jschwe merged 1 commit into
servo:mainfrom
jschwe:fix_prebuilt_mozjs

Conversation

@jschwe

@jschwe jschwe commented Jun 12, 2026

Copy link
Copy Markdown
Member

The windows-latest image was upgraded to VS 2026 in June, which seems to cause linking errors when attempting to link the VS 2026 prebuilt library into servo (built in CI with VS 2022). Pin the old image instead, to stay in sync with servo.

Testing: This will need a prebuilt library first, before we can test this in servo, since build from source doesn't reproduce the problem.

The windows-latest image was upgraded to VS 2026 in June,
which seems to cause linking errors when attempting to link the
VS 2026 prebuilt library into servo (built in CI with VS 2022).
Pin the old image instead, to stay in sync with servo.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
@jschwe jschwe force-pushed the fix_prebuilt_mozjs branch from 78251ad to 4ec91e1 Compare June 12, 2026 08:57

@sagudev sagudev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess there is no backwards compatibility, but is there at least forward compatibility or does that one also breaks? If so we should do some MSVC detection in build script and fallback to build when MSVC from prebuilds does not match.

@jschwe

jschwe commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

I'm not sure, but I would hope so. Can we test that after merging this PR, by doing a try run in servo (fork) with windows-latest? Not sure how to test it easily before the release.

@jschwe

jschwe commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

https://learn.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-180

Seems that as long as the linker is newer than the newest used toolchain, artifacts can be combined, so we should be good.

@jschwe jschwe enabled auto-merge June 12, 2026 10:59
@jschwe jschwe added this pull request to the merge queue Jun 12, 2026
Merged via the queue into servo:main with commit cebfc2a Jun 12, 2026
45 checks passed
@jschwe jschwe deleted the fix_prebuilt_mozjs branch June 12, 2026 15:51
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