aboutsummaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2019-12-22 15:07:11 -0800
committerMarco Poletti <poletti.marco@gmail.com>2019-12-22 15:07:11 -0800
commita9a358e68dfe962125a9dfc5da1a6a80778e37c7 (patch)
tree19f597e16af7fc795563c8328b374c5986638c4c /extras
parentbb1fc3b3abe3eda0f093fb1d45f9be96c6af6366 (diff)
downloadgoogle-fruit-a9a358e68dfe962125a9dfc5da1a6a80778e37c7.tar.gz
Set a build flag to help debug an "Invalid PCH" error when running tests in Travis CI under OS X with GCC 9.
Diffstat (limited to 'extras')
-rwxr-xr-xextras/scripts/postsubmit-helper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/scripts/postsubmit-helper.sh b/extras/scripts/postsubmit-helper.sh
index 36169bb..7a53da3 100755
--- a/extras/scripts/postsubmit-helper.sh
+++ b/extras/scripts/postsubmit-helper.sh
@@ -108,7 +108,7 @@ if [[ "${COMPILER}" != "bazel" ]]
then
# This is only needed in OS X but it has no effect on Linux so we can add it unconditionally.
BOOST_INCLUDE_FLAG="-I /usr/local/include/boost"
- COMMON_CXX_FLAGS="$STLARG $BOOST_INCLUDE_FLAG -Werror -pedantic"
+ COMMON_CXX_FLAGS="$STLARG $BOOST_INCLUDE_FLAG -Werror -pedantic -Winvalid-pch"
echo CXX version: $($CXX --version)
echo C++ Standard library location: $(echo '#include <vector>' | $CXX -x c++ -E - | grep 'vector\"' | awk '{print $3}' | sed 's@/vector@@;s@\"@@g' | head -n 1)