]> granicus.if.org Git - clang/commit
[Driver][Windows] Add dependent lib argument for profile instr generate
authorRussell Gallop <russell.gallop@gmail.com>
Tue, 14 May 2019 14:01:40 +0000 (14:01 +0000)
committerRussell Gallop <russell.gallop@gmail.com>
Tue, 14 May 2019 14:01:40 +0000 (14:01 +0000)
commit50b5d882092cfc32c3df4f69aca73f9660e9e103
treea1c4519f52f124aa85f7429ef95b78352191740e
parent791cf13a44f9116796e1ab1f3e9ea8e8187981fe
[Driver][Windows] Add dependent lib argument for profile instr generate

This is needed so lld-link can find clang_rt.profile when self hosting
on Windows with PGO. Using clang-cl as a linker knows to add the library
but self hosting, using -DCMAKE_LINKER=<...>/lld-link.exe doesn't.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360674 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/cl-options.c
test/Driver/instrprof-ld.c