forked from OSchip/llvm-project
Driver/Darwin: Fixup version check for -object_path_lto support.
llvm-svn: 133548
This commit is contained in:
parent
b02ea3d70d
commit
3d125d329c
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue