This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
91 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ import Lake | |
open System Lake DSL | ||
|
||
package lake where | ||
srcDir := FilePath.mk ".." / ".." | ||
binRoot := `Lake.Main | ||
srcDir := ".." / ".." | ||
|
||
lean_lib Lake | ||
|
||
@[defaultTarget] | ||
lean_exe lake where | ||
root := `Lake.Main | ||
supportInterpreter := true | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tydeu
Author
Member
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Lake | ||
open System Lake DSL | ||
|
||
require root from ".."/"root" | ||
|
||
package a | ||
require root from ".."/"root" | ||
@[defaultTarget] lean_lib A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Lake | ||
open System Lake DSL | ||
|
||
require root from ".."/"root" | ||
|
||
package b | ||
require root from ".."/"root" | ||
@[defaultTarget] lean_lib B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import Lake | ||
open System Lake DSL | ||
|
||
package bar | ||
|
||
require foo from ".."/"foo" | ||
|
||
package bar | ||
lean_lib Bar | ||
|
||
@[defaultTarget] | ||
lean_exe bar where | ||
root := `Main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import Lake | ||
open System Lake DSL | ||
|
||
package foo | ||
|
||
require a from ".."/"a" | ||
require b from ".."/"b" | ||
|
||
package foo | ||
lean_lib Foo | ||
|
||
@[defaultTarget] | ||
lean_exe foo where | ||
root := `Main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import Lake | ||
open Lake DSL | ||
|
||
package root | ||
@[defaultTarget] lean_lib Root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Ffi | ||
import FFI | ||
|
||
def main : IO Unit := | ||
IO.println <| myAdd 1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
import Lake | ||
open System Lake DSL | ||
|
||
require ffi from ".."/"lib" | ||
package app | ||
|
||
require ffi from ".."/"lib" | ||
|
||
@[defaultTarget] | ||
lean_exe app { | ||
root := `Main | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@[extern "my_add"] | ||
constant myAdd : UInt32 → UInt32 → UInt32 | ||
|
||
@[extern "my_lean_fun"] | ||
constant myLeanFun : IO PUnit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import Ffi | ||
import FFI | ||
|
||
def main : IO Unit := | ||
IO.println <| myAdd 1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ set -e | |
./clean.sh | ||
./package.sh | ||
./app/build/bin/app | ||
./lib/build/bin/ffi | ||
./lib/build/bin/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import Lake | ||
open Lake DSL | ||
|
||
package hello { | ||
package hello | ||
|
||
@[defaultTarget] | ||
lean_exe hello { | ||
root := `Main | ||
} |
This change likely broke Lean's
leanlaketest_git
test and thus the nightly release. Ideally tests should always be reproducible. I've excluded the test from Lean for now.