summaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 19:02:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-10 19:02:54 +0200
commit87aad8c76eb2371720c9aceef7516ecb0859ecdf (patch)
tree8068578c0cd986837757b1d8f8193b01aac01656 /bootstrap.sh
parent922412f5dc975b423757c1e248eac2813e48acb2 (diff)
Improve initial bootstrap speed.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 815c12f..fd9b605 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,4 +1,6 @@
#!/bin/sh
echo "Bootstrapping..."
-g++ -std=c++17 -O3 -Isrc -pthread src/*.cc ctor.cc test/ctor.cc -o ctor && \
-echo "Done. Now run ./ctor to build."
+g++ -std=c++17 -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor && \
+./ctor && \
+g++ -std=c++17 -O3 -Isrc -pthread ctor.cc test/ctor.cc -Lbuild -lctor -o ctor && \
+echo "Done. Now run ./ctor to (re)build."