Unconditionally pass `-lto_library` to the linker on Darwin
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 26 Oct 2016 23:23:08 +0000 (23:23 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 26 Oct 2016 23:23:08 +0000 (23:23 +0000)
commit5ee58d38606cc348dc11c2df662123aefb0a67e9
treefc4a436c83571a557509080df471c14a78e2fe54
parent5b2b39065ca6369280f4f07d3dc42f0785721911
Unconditionally pass `-lto_library` to the linker on Darwin

We're only doing it with -flto currently, however it never "hurt"
to pass it, and users that are linking without -flto can get in
trouble if one of the dependency (a static library for instance)
contains bitcode.

Differential Revision: https://reviews.llvm.org/D25932

llvm-svn: 285254
clang/lib/Driver/Tools.cpp
clang/test/Driver/darwin-ld-lto.c