]> granicus.if.org Git - clang/commit
Force the OS X version to 10.6 for old-style simulator builds.
authorBob Wilson <bob.wilson@apple.com>
Thu, 19 Jul 2012 01:35:55 +0000 (01:35 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 19 Jul 2012 01:35:55 +0000 (01:35 +0000)
commita1ec3db3a1ab7c37f1d7604bef777fe54711d8f0
tree57521229172f5c227ba914af34e3f52236e61def
parentc48dd8e7b4f6f273a0dd482f800323e4ed02f7fc
Force the OS X version to 10.6 for old-style simulator builds.

The hack of recognizing a -D__IPHONE_OS_VERSION_MIN_REQUIRED option
in place of -mios-simulator-version-min leaves the Darwin version
unspecified.  It can be set separately with -mmacosx-version-min (which
makes no sense) or inferred to match the host version (which is unpredictable
and usually wrong).  This really needs to get cleaned up, but in the
meantime, force the OS X version to 10.6 so that the behavior is sane for
the iOS simulator.  Thanks for Argyrios for the patch.
<rdar://problem/11858187>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
test/Driver/ios-simulator-arcruntime.c