Zulip Chat Archive
Stream: lean4
Topic: Is there option for static link all libraries?
Alissa Tung (Dec 09 2024 at 14:32):
Hello, I am trying to find some options to make Lean 4 link all libraries statically. which would includes:
- for all binaries by
lake build
,lake exe
, and something else, would produce compiled modules or compiled executables, statically linked to all foreign libraries which would commonly lookup from system search path (libc, gmp, libuv, ...) - for building Lean 4 itself, statically link itself
Eric Wieser (Dec 09 2024 at 14:37):
The problem with statically linking everything is that to use it with precompileModules
, you have to link a new lean
binary for every set of imports
Last updated: May 02 2025 at 03:31 UTC