Skip to content

Commit

Permalink
disable php intel optimisation flags if less than 2 cpu threads
Browse files Browse the repository at this point in the history
if less than 2 cpu threads detected, disable php intel optimisation flags due to being very very slow for php compile times
  • Loading branch information
centminmod committed Feb 18, 2017
1 parent da59ea6 commit 74df5b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/php_configure.inc
Expand Up @@ -278,6 +278,12 @@ else
fi
fi

if [[ "$(grep -c "processor" /proc/cpuinfo)" -lt '2' ]]; then
# Disable php intel optimisation flags if less than 2 cpu threads
# detected due to being very very slow for php compile times
GCCINTEL_PHP='n'
fi

if [[ "$GCCINTEL_PHP" = [yY] ]]; then

# PGO PHP7 on CentOS 6 might have GCC too old 4.4.7 so use devtoolset=3 GCC 4.9
Expand Down

0 comments on commit 74df5b1

Please sign in to comment.