[clang][Darwin] Error out when missing requested libarclite library
authorKeith Smiley <keithbsmiley@gmail.com>
Thu, 1 Jun 2023 01:55:17 +0000 (18:55 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Thu, 1 Jun 2023 16:32:59 +0000 (09:32 -0700)
commit2129cc1b3a14df5c24e5b2a680f18b88d5af4142
tree63bc204296193157f6d021bbf37d73f4b2d568f8
parent11b5b2a839c677bce9244893c9117706297b6025
[clang][Darwin] Error out when missing requested libarclite library

Starting with the SDKs provided with Xcode 14.3, this library no longer
exists. Before this change this results in an opaque linker error in the
case that your deployment target is low enough that this library is
added. This produces a more useful error message in that case.

Differential Revision: https://reviews.llvm.org/D150988
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/arclite-link-external-toolchain.c
clang/test/Driver/arclite-link.c