Source

ctypes_icc / runall.sh

Full commit
#!/usr/bin/env sh

exitcode=exitcode.log
rm "$exitcode"

run(){
    make clean && CC=$1 CFLAGS=$2 make && python run.py
    echo "$1 $2: $?" >> "$exitcode"
}

run gcc -O0
run gcc -O1
run gcc -O2
run gcc -O3
run icc -O0
run icc -O1
run icc -O2
run icc -O3

echo
echo "Result (see $exitcode):"
cat "$exitcode"