Zulip Chat Archive
Stream: lean4
Topic: RFC: Fun with LLVM
Henrik Böving (Jul 06 2023 at 19:18):
If a user decides to: import Lean.Compiler.IR.LLVMBindings
or import any other file that imports this one right now they will get a linker error because leanc
does not know about the fact that it can link against a lean built-in LLVM. However we probably do not want to teach leanc
to link against LLVM per default because almost all Lean binaries do not actually want to do that (or might even want to link against other LLVMs instead). As I see it there are two solutions to this:
- Just ignore it, who would want to import this file anyways
- Add some option to
lake
that you can enable if you want. I guess this would have to be implemented as someleanc
flag under the hood becauseleanc
should be taught where the libraries are?
Does someone have an alternative approach or opinions on which one we should go for?
Last updated: Dec 20 2023 at 11:08 UTC