diff --git a/examples/bootstrap/.gitignore b/examples/bootstrap/.gitignore new file mode 100644 index 0000000000..796b96d1c4 --- /dev/null +++ b/examples/bootstrap/.gitignore @@ -0,0 +1 @@ +/build diff --git a/examples/bootstrap/clean.sh b/examples/bootstrap/clean.sh new file mode 100644 index 0000000000..1582321863 --- /dev/null +++ b/examples/bootstrap/clean.sh @@ -0,0 +1 @@ +rm -rf build diff --git a/examples/bootstrap/package.lean b/examples/bootstrap/package.lean new file mode 100644 index 0000000000..d262d83d5a --- /dev/null +++ b/examples/bootstrap/package.lean @@ -0,0 +1,15 @@ +import Lake.Package + +open Lake System + +def package : PackageConfig := { + name := "lake" + version := "2.0-pre-bootstrap" + rootDir := FilePath.mk ".." / ".." + oleanDir := defaultBuildDir + linkArgs := + if Platform.isWindows then + #["-Wl,--export-all"] + else + #["-rdynamic"] +} diff --git a/examples/bootstrap/package.sh b/examples/bootstrap/package.sh new file mode 100644 index 0000000000..b6449c2dd0 --- /dev/null +++ b/examples/bootstrap/package.sh @@ -0,0 +1 @@ +../../build/bin/Lake build-bin diff --git a/examples/bootstrap/test.sh b/examples/bootstrap/test.sh new file mode 100644 index 0000000000..a8721478b4 --- /dev/null +++ b/examples/bootstrap/test.sh @@ -0,0 +1,3 @@ +./clean.sh +./package.sh +./build/bin/lake help diff --git a/examples/hello/bootstrap-test.sh b/examples/hello/bootstrap-test.sh new file mode 100644 index 0000000000..f6d33f4ddf --- /dev/null +++ b/examples/hello/bootstrap-test.sh @@ -0,0 +1,3 @@ +./clean.sh +../bootstrap/build/bin/Lake build-bin +./build/bin/Hello diff --git a/examples/test.sh b/examples/test.sh index 1201d6ea1a..dfcedaae58 100644 --- a/examples/test.sh +++ b/examples/test.sh @@ -23,7 +23,15 @@ cd git ./test.sh cd .. -echo 'testing ext' -cd ext +echo 'testing ffi' +cd ffi ./test.sh cd .. + +echo "testing bootstrap" +cd bootstrap +./test.sh +cd .. +cd hello +./bootstrap-test.sh +cd ..