From f8a42a706b58d4e1ddeea128a531faf69e106a93 Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 12 Oct 2016 15:47:53 -0700 Subject: [PATCH] fb internal: Should also use GCC 4.8.1 for CentOS 7 --- build_tools/build_detect_platform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 94aafd62e..2ff64afe2 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -49,7 +49,7 @@ if [ -d /mnt/gvfs/third-party -a -z "$CXX" ]; then if [ -z "$USE_CLANG" ]; then CENTOS_VERSION=`rpm -q --qf "%{VERSION}" \ $(rpm -q --whatprovides redhat-release)` - if [ "$CENTOS_VERSION" = "6" ]; then + if [ "$CENTOS_VERSION" -ge "6" ]; then source $PWD/build_tools/fbcode.gcc481.sh else source $PWD/build_tools/fbcode.gcc471.sh