diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 16:35:57 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-11 17:09:12 +0100 |
commit | f31661d392c1332ceb0edcbc9fd35f4cb49bb50d (patch) | |
tree | 6034e11da079476e0ab4b0b3c6bfefaee187d5e9 /bootstrap.sh | |
parent | 0b0cb4afa08210b572a9be6cadcb6397935b99d1 (diff) |
Support using custom build-dir during bootstrap.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 5873e83..76503bb 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,10 +1,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 -Lbuild -lctor -o ctor && \ -./ctor configure --ctor-includedir=src --ctor-libdir=build && \ +$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." |