aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-13 16:28:21 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-16 10:19:15 -0800
commit3e89c30bae2265e694212a5909a553de0484dc14 (patch)
tree76cdbc29ae5b83cd6b675bf40c3b818cf863c537 /docs/markdown/snippets
parent85550e8fce3d2a1547db9fccc81e496d278eed90 (diff)
downloadmeson-3e89c30bae2265e694212a5909a553de0484dc14.zip
meson-3e89c30bae2265e694212a5909a553de0484dc14.tar.gz
meson-3e89c30bae2265e694212a5909a553de0484dc14.tar.bz2
unittests: Simplify and make test_templates more reliable
env.detect_<lang>_compiler only checks that there is a binary called whatever that returns a version. There are several cases where the found binary doesn't work: 1) gcc for ojbc[pp], when support isn't compiled in. 2) the compiler is broken (rust in appveyor somtimes) Because of that we need to call compiler.sanity_check() as well, and if we get an EnvironmentException from that skip the language Also, instead of having a long line of try: ... except: pass, roll all of the checking up into a loop using getattr(), which is less code and makes adding a new language easier
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions