Skip to content

fix: lake: extern_lib loading in non-precompiled module builds#8152

Merged
tydeu merged 1 commit intoleanprover:masterfrom
tydeu:lake/externLib-no-precompile
Apr 30, 2025
Merged

fix: lake: extern_lib loading in non-precompiled module builds#8152
tydeu merged 1 commit intoleanprover:masterfrom
tydeu:lake/externLib-no-precompile

Conversation

@tydeu
Copy link
Copy Markdown
Member

@tydeu tydeu commented Apr 28, 2025

This PR fixes a regression where non-precompiled module builds would --load-dynlib package extern_lib targets.

A reappearance of #4565. Thanks to Daniil on Zulip for the report! This was not caught by the old test due to the removal of extern_lib from the FFI example.

@tydeu tydeu added the changelog-lake Lake label Apr 28, 2025
@tydeu tydeu changed the title fix: lake: do not load extern libs when not precompiling fix: lake: extern_lib loading in non-precompiled module builds Apr 28, 2025
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Apr 28, 2025
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Apr 28, 2025
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Apr 28, 2025
@ghost ghost added the builds-mathlib CI has verified that Mathlib builds against this PR label Apr 28, 2025
@ghost
Copy link
Copy Markdown

ghost commented Apr 28, 2025

Mathlib CI status (docs):

@tydeu tydeu marked this pull request as ready for review April 30, 2025 01:04
@tydeu tydeu enabled auto-merge April 30, 2025 01:04
@tydeu tydeu added this pull request to the merge queue Apr 30, 2025
Merged via the queue into leanprover:master with commit de0187a Apr 30, 2025
30 checks passed
@tydeu tydeu deleted the lake/externLib-no-precompile branch April 30, 2025 01:59
tydeu added a commit to tydeu/lean4 that referenced this pull request Apr 30, 2025
…nprover#8152)

This PR fixes a regression where non-precompiled module builds would
`--load-dynlib` package `extern_lib` targets.

A reappearance of leanprover#4565. Thanks to Daniil [on
Zulip](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/Multiple.20extern_lib/near/514772675)
for the report! This was not caught by the old test due to the removal
of `extern_lib` from the FFI example.
tydeu added a commit that referenced this pull request May 1, 2025
This PR backports fixes to dynamic library linking and loading in Lake
to `v4.19.0`.

Includes changes from #7809, #8026, #8152, and #8190.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-lake Lake toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant