提交 44e6bfec 编写于 作者: J Jesse Zhang

Tweak ccache to get legible diagnostics

ccache 3.2 (from Ubuntu Xenial) defaults CCACHE_CPP2 to off (this
setting defaults to on starting from ccache 3.3). That default leads to
unlegible compiler warning outputs because GCC and Clang will emit
warnings using the preprocessed output. Turn it on here.
上级 88f9744a
......@@ -95,6 +95,14 @@ python:
before_install:
- eval "${OVERRIDE_CC}"
- eval "${OVERRIDE_CXX}"
# ccache 3.2 (from Ubuntu Xenial) has CCACHE_CPP2 default to off (this
# setting defaults to on starting from ccache 3.3). That default leads to
# unlegible compiler warning outputs because GCC and Clang will emit
# warnings using the preprocessed output...
- |
if [ "${TRAVIS_DIST}" = xenial ]; then
ccache --set-config run_second_cpp=true
fi
- |
if [ "${TRAVIS_COMPILER}" = clang ]; then
case "${TRAVIS_OS_NAME}" in
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册