]> granicus.if.org Git - clang/commitdiff
Driver/Darwin: Fixup version check for -object_path_lto support.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 21 Jun 2011 21:18:32 +0000 (21:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 21 Jun 2011 21:18:32 +0000 (21:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133548 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/darwin-ld.c

index 40ad2caabbda32a12b0acd69eab44014c78d2292..a4bb8fed46d8856d0660a14b715a4ebdccc2afb4 100644 (file)
@@ -2911,7 +2911,7 @@ void darwin::Link::AddLinkArgs(Compilation &C,
   // If we are using LTO, then automatically create a temporary file path for
   // the linker to use, so that it's lifetime will extend past a possible
   // dsymutil step.
-  if (Version[0] >= 100 && D.IsUsingLTO(Args)) {
+  if (Version[0] >= 116 && D.IsUsingLTO(Args)) {
     const char *TmpPath = C.getArgs().MakeArgString(
       D.GetTemporaryPath(types::getTypeTempSuffix(types::TY_Object)));
     C.addTempFile(TmpPath);
index a87de540360e229946407e8d6295f2adbfc76d9f..e8268484eb2fe30ba0fa4fa18d0641575f735f8c 100644 (file)
@@ -94,7 +94,7 @@
 // LINK_OLDER_NODEMANGLE: "-lSystem"
 
 // RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### %t.o \
-// RUN:   -mlinker-version=101 -flto 2> %t.log
+// RUN:   -mlinker-version=117 -flto 2> %t.log
 // RUN: cat %t.log
 // RUN: FileCheck -check-prefix=LINK_OBJECT_LTO_PATH %s < %t.log
 //