summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-10-10 19:38:34 +0000
committerBob Wilson <bob.wilson@apple.com>2014-10-10 19:38:34 +0000
commit771b7cd8123880e1dd7bb05c519c59f15c87f1bc (patch)
tree2ec1bc26aada28a378eafecaf61b09fff68a9e40 /clang/lib
parentd824405011b2f2a948dc3c0c5e078e035d8f6c09 (diff)
downloadbcm5719-llvm-771b7cd8123880e1dd7bb05c519c59f15c87f1bc.tar.gz
bcm5719-llvm-771b7cd8123880e1dd7bb05c519c59f15c87f1bc.zip
Remove a FIXME: use the ios_simulator_version_min linker option consistently.
This was previously only used when explicitly requested with a command line option because it had to work with some old versions of the linker when it was first introduced. That is ancient history now, and it should be safe to use the correct option even when using the IPHONEOS_DEPLOYMENT_TARGET environment variable to specify that the target is the iOS simulator. Besides updating the test for this, I also added a few more tests for the iOS linker options. llvm-svn: 219527
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/ToolChains.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 384b995386a..d98f4fb503e 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -984,10 +984,7 @@ void Darwin::addMinVersionArgs(const llvm::opt::ArgList &Args,
// otherwise use the traditional deployment targets. We can't just check the
// is-sim attribute because existing code follows this path, and the linker
// may not handle the argument.
- //
- // FIXME: We may be able to remove this, once we can verify no one depends on
- // it.
- if (Args.hasArg(options::OPT_mios_simulator_version_min_EQ))
+ if (isTargetIOSSimulator())
CmdArgs.push_back("-ios_simulator_version_min");
else if (isTargetIOSBased())
CmdArgs.push_back("-iphoneos_version_min");
OpenPOWER on IntegriCloud