Return C compiler flags for including Lean's headers.
Equations
- Lean.Compiler.FFI.getCFlags leanSysroot = #["-I", (leanSysroot / { toString := "include" }).toString] ++ (Lean.Compiler.FFI.getLeancExtraFlags ()).trim.splitOn
Instances For
Return C compiler flags needed to use the C compiler bundled with the Lean toolchain.
Equations
- Lean.Compiler.FFI.getInternalCFlags leanSysroot = Array.map (fun (x : String) => x.replace "ROOT" leanSysroot.toString) (Lean.Compiler.FFI.getLeancInternalFlags ()).trim.splitOn.toArray
Instances For
def
Lean.Compiler.FFI.getLinkerFlags
(leanSysroot : Lake.FilePath)
(linkStatic : optParam Bool true)
:
Return linker flags for linking against Lean's libraries.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Return linker flags needed to use the linker bundled with the Lean toolchain.
Equations
- One or more equations did not get rendered due to their size.