Skip to content

Commit

Permalink
GCC 8.x compiler prep work part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Jan 14, 2018
1 parent d39b144 commit d6bc1c3
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion inc/nginx_configure.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2449,7 +2449,25 @@ if [[ "$CENTOS_SEVEN" = '7' && "$CLANG" = [nN] && "$NGINX_DEVTOOLSETGCC" = [yY]
fi
# PS_FLAGS=$(echo " $PS_NGX_EXTRA_FLAGS")
PS_FLAGS=""
if [[ "$DEVTOOLSETSEVEN" = [yY] ]]; then
if [[ "$DEVTOOLSETEIGHT" = [yY] ]] && [[ -f /opt/gcc8/bin/gcc && -f /opt/gcc8/bin/g++ ]]; then
if [[ "$INITIALINSTALL" != [yY] ]]; then
source /opt/gcc8/enable
which gcc
which g++
unset CC
unset CXX
export CC="ccache gcc"
export CXX="ccache g++"
else
source /opt/gcc8/enable
which gcc
which g++
unset CC
unset CXX
export CC="gcc"
export CXX="g++"
fi
elif [[ "$DEVTOOLSETSEVEN" = [yY] ]]; then
if [[ "$INITIALINSTALL" != [yY] ]]; then
source /opt/rh/devtoolset-7/enable
which gcc
Expand Down

0 comments on commit d6bc1c3

Please sign in to comment.