the_silver_searcher/pgo.sh
2017-11-01 10:38:03 -04:00

10 lines
188 B
Bash
Executable file

#!/bin/sh
set -e
cd "$(dirname "$0")"
make clean
./build.sh CFLAGS="$CFLAGS -fprofile-generate"
./ag example ..
make clean
./build.sh CFLAGS="$CFLAGS -fprofile-correction -fprofile-use"