Skip to content

test(boot): preserve installed paths for relocatable OCaml - #17156

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-nokqwzxxsxsn
Nov 22, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-nokqwzxxsxsn

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

The bootstrap GC cram test symlinks the OCaml toplevel into its temporary tools directory. A toplevel built with --with-relative-libdir looks for the standard library relative to that path and fails with Unbound module Stdlib before the GC checks run, as seen in the OCaml 5.5 CI job for #17149.

Forward every tool call to the installed executable and only record GC settings for the compiler tools under test. The existing GC assertions are unchanged.

Execute the real OCaml tools at their installed paths. Symlinking the toplevel into the test tools directory breaks standard library lookup when OCaml is configured with --with-relative-libdir, before the bootstrap GC settings can be checked.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg
rgrinberg merged commit 068fc03 into ocaml:main Nov 22, 2026
36 of 37 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Nov 23, 2026
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