aboutsummaryrefslogtreecommitdiff
path: root/bootstrap
blob: 86dcc783ba54893b4c1ee05497339c9007b88f32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

src="build/*.cxx build/config/*.cxx build/bin/*.cxx build/cxx/*.cxx"

cxx=g++

while test $# -ne 0; do
  case $1 in
    --help)
      echo "Usage: $0 [--help] [--cxx <c++-compiler>]" 1>&2
      echo "See the INSTALL file for details." 1>&2
      exit 0
      ;;
    --cxx)
      shift
      if test $# -eq 0; then
	echo "error: c++ compiler executable expected after --cxx" 1>&2
	exit 1
      fi
      cxx=$1
      shift
      ;;
    *)
      echo "error: unknown option $1" 1>&2
      exit 1
      ;;
  esac
done

echo $cxx -std=c++14 -I. -o build/b-boot $src 1>&2
exec $cxx -std=c++14 -I. -o build/b-boot $src