[PATCH] D13117: [DarwinDriver] Use -lto_library to specify the path for libLTO.dylib

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 15:06:11 PDT 2015


dexonsmith added a subscriber: dexonsmith.
dexonsmith added a comment.

The code LGTM, but there ought to be a way to add a LIT test for this.

Looking for -object_path_lto, I found this:
-------------------------------------------

// RUN: %clang -target x86_64-apple-darwin10 -### %s \
// RUN:   -mlinker-version=117 -flto 2> %t.log
// RUN: cat %t.log
// RUN: FileCheck -check-prefix=LINK_OBJECT_LTO_PATH %s < %t.log
//
// LINK_OBJECT_LTO_PATH: {{ld(.exe)?"}}

// LINK_OBJECT_LTO_PATH: "-object_path_lto"
-------------------------------------------

in test/Driver/darwin-ld.c.  Can you add a similar test there?


Repository:
  rL LLVM

http://reviews.llvm.org/D13117





More information about the cfe-commits mailing list