summaryrefslogtreecommitdiff
path: root/test cases/python3/1 basic/prog.py
diff options
context:
space:
mode:
authorBarnabás Pőcze <pobrn@protonmail.com>2024-06-01 21:26:49 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2024-06-23 22:33:37 +0300
commiteba5498e9b40fdc6fd7d9621a9262dbd8364ea62 (patch)
tree79c23bb6d1c9c9a0cbbd0e5f2001d12ed03240e5 /test cases/python3/1 basic/prog.py
parent03ffb5bd6f2e441227e0a1758b258c2a4d3d58d7 (diff)
downloadmeson-eba5498e9b40fdc6fd7d9621a9262dbd8364ea62.tar.gz
compilers: cpp: fix header name and return value use in header check
There are two issues: 1. has_header() wants just the header name without surrounding <> or similar; it fails otherwise. 2. has_header() returns a tuple of two bools, where the first element determines whether or not the header has been found. So use that element specifically, otherwise the tuple will always evaluate to true because it is not empty. Fixes: 675b47b0692131 ("compilers: cpp: improve libc++ vs libstdc++ detection (again)")
Diffstat (limited to 'test cases/python3/1 basic/prog.py')
0 files changed, 0 insertions, 0 deletions