Don't rebuild if we don't need to
This commit is contained in:
parent
b1ee31c58f
commit
7e3aa68942
|
@ -56,10 +56,13 @@ sub MAIN() {
|
||||||
paths("src", :file(-> $a {$a.ends-with(".idr") || $a.ends-with(".md")}))
|
paths("src", :file(-> $a {$a.ends-with(".idr") || $a.ends-with(".md")}))
|
||||||
.map: *.IO.relative("src/".IO);
|
.map: *.IO.relative("src/".IO);
|
||||||
|
|
||||||
|
# Clean if there is more than one ttc folder, easiest way to locate the
|
||||||
# Do a pack clean build so we can find the ttms
|
# correct one
|
||||||
exit -1 unless run <pack clean>;
|
if "build/ttc".IO.dir.elems > 1 {
|
||||||
exit -1 unless run <pack build>;
|
# Do a pack clean build so we can find the ttms
|
||||||
|
exit -1 unless run <pack clean>;
|
||||||
|
exit -1 unless run <pack build>;
|
||||||
|
}
|
||||||
|
|
||||||
# find our ttc folder
|
# find our ttc folder
|
||||||
$build-path = "build/ttc/".IO.dir[0];
|
$build-path = "build/ttc/".IO.dir[0];
|
||||||
|
|
Loading…
Reference in a new issue