blob: 76503bb25afa949b1ec239f5f81c3d8aad9ae4d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
: ${CXX:=g++}
: ${BUILDDIR:=build}
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 -L$BUILDDIR -lctor -o ctor && \
./ctor configure --ctor-includedir=src --ctor-libdir=$BUILDDIR --build-dir=$BUILDDIR&& \
echo "Done. Now run ./ctor to (re)build."
|