]> granicus.if.org Git - clang/commit
Make the auto-detection hack for the iOS simulator set the target triple correctly...
authorEli Friedman <eli.friedman@gmail.com>
Mon, 16 Jan 2012 18:50:54 +0000 (18:50 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Mon, 16 Jan 2012 18:50:54 +0000 (18:50 +0000)
commit100d04165571d42437c8e74482534e69495540ec
treeaf5844440cc66b90b6650e523a2eb3708aaf3549
parent7c9719b1cdb85bb8824439acd5c7c8e511d3e7a0
Make the auto-detection hack for the iOS simulator set the target triple correctly.  Getting the target triple wrong mostly appears to work, but messes up in subtle cases; for example, we incorrectly conclude that fwrite is actually named fwrite$UNIX2003.  Also shuffles around the auto-detection code a bit to try and make it a bit more reliable.  Fixes <rdar://problem/10664848>.

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