Commit 5346237c authored by Kirill Smelkov's avatar Kirill Smelkov

X compilebench: Rework how `tcc -O2` is skipped

Don't continue on `if $CC == tcc` -> instead put actions that are not
appropriate for `tcc -O2` under `if $CC != tcc`. We will add other
actions to that loop - that's the reason.

In preparation to add pystone_pyx.pyx
parent aae7ed82
......@@ -89,17 +89,16 @@ for CC in gcc tcc; do
done
# tcc -O2 does not add anything (tcc accepts -Ox only for compatibility)
if [ $CC == tcc ]; then
continue
if [ $CC != tcc ]; then
for i in `seq $N`; do
export TIMEFORMAT="Benchmark${CC}compile+linkO2 1 %R s/op"
time compileandlink pystone_pypyx "-O2"
done
for i in `seq $N`; do
python -c 'import pystone_pypyx as _; _.main()' |pystone2bench ${CC}O2
done
fi
for i in `seq $N`; do
export TIMEFORMAT="Benchmark${CC}compile+linkO2 1 %R s/op"
time compileandlink pystone_pypyx "-O2"
done
for i in `seq $N`; do
python -c 'import pystone_pypyx as _; _.main()' |pystone2bench ${CC}O2
done
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment