Re: [gentoo-dev] Re: [PATCH] Fix tc-cpp-is-true to work with clang

2019-11-06 Thread Sergei Trofimovich
On Mon, 4 Nov 2019 20:18:11 + Sergei Trofimovich wrote: > On Mon, 4 Nov 2019 10:11:20 + > Mattias Nissler wrote: > > > Clang's preprocessor likes to output a leading newline, which makes > > the comparison always fail. GCC generates additional output with certain > > flags (e.g.

[gentoo-dev] Re: [PATCH] Fix tc-cpp-is-true to work with clang

2019-11-04 Thread Sergei Trofimovich
On Mon, 4 Nov 2019 10:11:20 + Mattias Nissler wrote: > Clang's preprocessor likes to output a leading newline, which makes > the comparison always fail. GCC generates additional output with certain > flags (e.g. -ggdb3) as well. Hence, switch the test to trigger a > preprocessor error when