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)
commita747e5935d64a2ccdb8a68da69b736b5a17604d4
treecb857fc1c3860bad9cd689272fe34077ffbc001f
parent745c4710db21ac63c5f96dc669b7eb7001b6377e
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.

llvm-svn: 229904
llvm/lib/Support/Unix/Program.inc