Use all cores only in clang for travis
This commit is contained in:
parent
8ecb0ecaeb
commit
19cd3656a9
@ -38,9 +38,12 @@ addons:
|
|||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
#- export THREADS=$((`nproc` + 1))
|
|
||||||
# Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
|
# 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"
|
- echo "THREADS = $THREADS"
|
||||||
- free -mt
|
- free -mt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user