bsd.compiler.mk: detect Apple Clang for cross-builds
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 20 Apr 2021 00:46:36 +0000 (01:46 +0100)
committerAlex Richardson <arichardson@FreeBSD.org>
Tue, 20 Apr 2021 00:46:36 +0000 (01:46 +0100)
commitba1182e26376987fe424707b2abc4d6532b28623
tree9b780ceb432f0aed33b079a720b475c44f769ffe
parentfaa9ad8a90058cf07e806cea51c0030bf69f88db
bsd.compiler.mk: detect Apple Clang for cross-builds

Apple clang uses a different versioning scheme, so if we enable or
disable certain warnings for Clang 11+, those might not be supported
in Apple Clang 11+. This adds 'apple-clang' to COMPILER_FEATURES, so that
bootstrap tools Makefiles can avoid warnings on macOS.

Reviewed By: imp
Differential Revision: https://reviews.freebsd.org/D29680
share/mk/bsd.compiler.mk