[clang][NFC] Refactor logic for picking standard library on Apple
authorLouis Dionne <ldionne.2@gmail.com>
Tue, 22 Mar 2022 14:58:24 +0000 (10:58 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Tue, 22 Mar 2022 16:35:47 +0000 (12:35 -0400)
commit80e66a05b6fad7d5f0ef71d5e0a74ce5ddc157a5
tree06197f511c70ca31f9904bce0a20fe7a37f10fc2
parent510a2bbda4edd67e95d8797e748357fc9ceee484
[clang][NFC] Refactor logic for picking standard library on Apple

Flip the logic around: always default to libc++ except on older platforms,
instead of defaulting to libstdc++ except on newer platforms. Since roughly
all supported platforms use libc++ now, it makes more sense to make that
the default, and allows the removal of some downstream diff.

Differential Revision: https://reviews.llvm.org/D122232
clang/lib/Driver/ToolChains/Darwin.cpp