libsanitizer, Darwin, Bootstrap : Fix bootstrap on Darwin <= 15.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 18 Oct 2020 07:48:58 +0000 (08:48 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 18 Oct 2020 19:55:58 +0000 (20:55 +0100)
commit476036b35c5e9203735b19b9967ff0e9932c8c31
treed450743e6ed3f9f6ee3a81b9eb2cd0bfc75cbcb3
parentcd6cd6aed195b4ec7d652e8b41d60b60e174304e
libsanitizer, Darwin, Bootstrap : Fix bootstrap on Darwin <= 15.

The latest upstream merge for libsanitizer introduces code that makes
use of some macro values that are not available in SDKs for versions
of Darwin <= 15 (macOS 10.11).

Add definitions for these where they are not present.

libsanitizer/ChangeLog:

* sanitizer_common/sanitizer_mac.h: Ensure that TARGET_OS_
macros are defined where the macOS SDK does not contain
them.
(TARGET_OS_OSX, TARGET_OS_IOS, TARGET_OS_TV, TARGET_OS_WATCH):
Define where needed.
libsanitizer/sanitizer_common/sanitizer_mac.h