On Mon, 4 Nov 2019 20:18:11 +0000
Sergei Trofimovich <sly...@gentoo.org> wrote:

> On Mon,  4 Nov 2019 10:11:20 +0000
> Mattias Nissler <mniss...@chromium.org> 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 the condition is not true and examine the exit
> > code.
> > 
> > Bug: https://bugs.gentoo.org/698912
> > 
> > Signed-off-by: Mattias Nissler <mniss...@chromium.org>
> > ---
> >  eclass/toolchain-funcs.eclass | 15 +++++++--------
> >  1 file changed, 7 insertions(+), 8 deletions(-)  
> 
> Looks good! I'll pull it in to ::gentoo in a few days.

Pushed to ::gentoo as:
    
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ef6b33339da7bb04afd77e1bc5db011b02d658a
Also while at it added basic regression test:
    
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f02136721af40dd89a09101504750fb28f8142e

-- 

  Sergei

Reply via email to