[test] Fix macOS triple check
authorBen Langmuir <blangmuir@apple.com>
Wed, 13 Jul 2022 19:10:20 +0000 (12:10 -0700)
committerBen Langmuir <blangmuir@apple.com>
Wed, 13 Jul 2022 20:36:16 +0000 (13:36 -0700)
commit904422457564b5773b5f65c48c3954cb10a9ad1c
tree441844995c62f332cfb651b34609d2a35ac07721
parent3ce78cbd2392d7c98f97d1d424cd7ff582fc28f8
[test] Fix macOS triple check

While the inferred host triple for macOS is something like
<arch>-apple-darwin, it's also valid to have <arch>-apple-macos.
Currently that globally changes whether an SDKROOT is provided in tests,
so make this check more portable.

Differential Revision: https://reviews.llvm.org/D129684
llvm/utils/lit/lit/util.py