Use all cores only in clang for travis

This commit is contained in:
Benau 2016-11-11 15:29:17 +08:00
parent 8ecb0ecaeb
commit 19cd3656a9

View File

@ -38,9 +38,12 @@ addons:
- zlib1g-dev
before_script:
#- export THREADS=$((`nproc` + 1))
# Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
- export THREADS=4
- 'if [ ${CC} = "gcc" ]; then
export THREADS=4;
else
export THREADS=$((`nproc` + 1));
fi'
- echo "THREADS = $THREADS"
- free -mt