Skip to content

Instantly share code, notes, and snippets.

@osa1
Last active September 5, 2018 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osa1/0ed1165915fb6f23a29787915944f7a8 to your computer and use it in GitHub Desktop.
Save osa1/0ed1165915fb6f23a29787915944f7a8 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -x
git submodule update --init
make distclean
./boot
./configure
make -j
./inplace/bin/ghc-stage2 --interactive +RTS -t -RTS <<<'sequence_ (replicate 100000000 (return ()))' 2>&1 1>/dev/null | python bisect_script.py
#!/usr/bin/python
import sys
import re
r = re.compile(r'(\d+)M in use')
for line in sys.stdin:
assert int(r.findall(line)[0]) < 100
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment