Documentation

Lake.Build.Actions

Common Build Actions #

Low level actions to build common Lean artifacts via the Lean toolchain.

def Lake.compileLeanModule (leanFile relLeanFile : System.FilePath) (oleanFile? ileanFile? cFile? bcFile? : Option System.FilePath) (leanPath : System.SearchPath := []) (rootDir : System.FilePath := { toString := "." }) (dynlibs plugins : Array Dynlib := #[]) (leanArgs : Array String := #[]) (lean : System.FilePath := { toString := "lean" }) :
Equations
    Instances For
      def Lake.compileO (oFile srcFile : System.FilePath) (moreArgs : Array String := #[]) (compiler : System.FilePath := { toString := "cc" }) :
      Equations
        Instances For
          Equations
            Instances For
              def Lake.compileStaticLib (libFile : System.FilePath) (oFiles : Array System.FilePath) (ar : System.FilePath := { toString := "ar" }) (thin : Bool := false) :
              Equations
                Instances For
                  def Lake.compileSharedLib (libFile : System.FilePath) (linkArgs : Array String) (linker : System.FilePath := { toString := "cc" }) :
                  Equations
                    Instances For
                      def Lake.compileExe (binFile : System.FilePath) (linkArgs : Array String) (linker : System.FilePath := { toString := "cc" }) :
                      Equations
                        Instances For
                          def Lake.download (url : String) (file : System.FilePath) (headers : Array String := #[]) :

                          Download a file using curl, clobbering any existing file.

                          Equations
                            Instances For
                              def Lake.untar (file dir : System.FilePath) (gzip : Bool := true) :

                              Unpack an archive file using tar into the directory dir.

                              Equations
                                Instances For
                                  def Lake.tar (dir file : System.FilePath) (gzip : Bool := true) (excludePaths : Array System.FilePath := #[]) :

                                  Pack a directory dir using tar into the archive file.

                                  Equations
                                    Instances For