Skip to content

Instantly share code, notes, and snippets.

@dcci
Created April 27, 2017 20:43
Show Gist options
  • Save dcci/891cd98d80b1b95352a407d80914f7cf to your computer and use it in GitHub Desktop.
Save dcci/891cd98d80b1b95352a407d80914f7cf to your computer and use it in GitHub Desktop.
git bisect run
#!/bin/bash
# git bisect start
# git bisect good <rev>
# git bisect bad <rev>
# git bisect run [script]
cd /home/davide/work/llvm-monorepo/build
ninja opt lli || exit 125 #125 tells git-bisect to skip
ulimit -t 5 && /home/davide/work/llvm-monorepo/build/bin/opt /home/davide/work/llvm-monorepo/build/bin/foo.ll -O3 | /home/davide/work/llvm-monorepo/build/bin/lli
[[ $? == 0 ]] && exit 0
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment