blob: 5873e833ec3ea3b9f044b1f9a3efacd1e126e4d1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
: ${CXX:=g++}
CXX=$(which $CXX)
echo "Bootstrapping..."
$CXX -std=c++20 -Wall -O3 -Isrc -pthread src/bootstrap.cc ctor.cc test/ctor.cc -o ctor && \
./ctor && \
$CXX -std=c++20 -Wall -O3 -Isrc -pthread ctor.cc test/ctor.cc -Lbuild -lctor -o ctor && \
./ctor configure --ctor-includedir=src --ctor-libdir=build && \
echo "Done. Now run ./ctor to (re)build."
|