Checking if TARGET_OS_IPHONE is defined isn't good enough for 10.7 and earlier.
authorChris Bieneman <beanz@apple.com>
Thu, 19 Feb 2015 19:50:52 +0000 (19:50 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 19 Feb 2015 19:50:52 +0000 (19:50 +0000)
commitcbccd8ddf555768ad957d03bc22c7e6a1f252fe2
tree82e59f9847681cc061e0ad5caa2622b599f47801
parentf45c1a4d12f065a249b897e35a7248e61ee12187
Checking if TARGET_OS_IPHONE is defined isn't good enough for 10.7 and earlier.

Older versions of the TargetConditionals header always defined TARGET_OS_IPHONE to something (0 or 1), so we need to test not only for the existence but also if it is 1.

This resolves PR22631.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229904 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Program.inc