Documentation

Lake.Build.Actions

Common Build Actions #

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

def Lake.compileLeanIR (setupFile irFile cFile : System.FilePath) (leanPath : System.SearchPath := []) (leanir : System.FilePath := { toString := "leanir" }) :
Instances For
    def Lake.compileLeanModule (leanFile relLeanFile : System.FilePath) (setup : Lean.ModuleSetup) (setupFile : System.FilePath) (arts : Lean.ModuleArtifacts) (leanArgs : Array String := #[]) (leanPath : System.SearchPath := []) (lean : System.FilePath := { toString := "lean" }) :
    Instances For
      def Lake.compileO (oFile srcFile : System.FilePath) (moreArgs : Array String := #[]) (compiler : System.FilePath := { toString := "cc" }) :
      Instances For
        Instances For
          def Lake.compileStaticLib (libFile : System.FilePath) (oFiles : Array System.FilePath) (ar : System.FilePath := { toString := "ar" }) (thin : Bool := false) :
          Instances For
            def Lake.compileSharedLib (libFile : System.FilePath) (linkArgs : Array String) (linker : System.FilePath := { toString := "cc" }) (macosxDeploymentTarget? : Option String := none) :
            Instances For
              def Lake.compileExe (binFile : System.FilePath) (linkArgs : Array String) (linker : System.FilePath := { toString := "cc" }) (macosxDeploymentTarget? : Option String := none) :
              Instances For
                def Lake.download (url : String) (file : System.FilePath) (headers : Array String := #[]) :

                Download a file using curl, clobbering any existing file.

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

                  Unpack an archive file using tar into the directory dir.

                  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.

                    Instances For