hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

genbootstrap (441B)


      1 #!/bin/sh -eu
      2 
      3 cd "$(dirname "$0")/.."
      4 mkdir -p "${BINOUT:-.bin}" makefiles/
      5 hare build -o "${BINOUT:-.bin}"/genbootstrap cmd/genbootstrap
      6 for platform in linux freebsd openbsd; do
      7 	platformtags=
      8 	if [ $platform = "openbsd" ]; then
      9 		platformtags=libc
     10 	fi
     11 	for arch in x86_64 aarch64 riscv64; do
     12 		echo makefiles/$platform.$arch.mk
     13 		"${BINOUT:-.bin}"/genbootstrap $platform $arch $platformtags \
     14 			>makefiles/$platform.$arch.mk
     15 	done
     16 done