[XRay][clang] Add a flag to enable/disable linking XRay deps explicitly
authorDean Michael Berris <dberris@google.com>
Fri, 6 Apr 2018 05:28:54 +0000 (05:28 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 6 Apr 2018 05:28:54 +0000 (05:28 +0000)
commit248148db0032b2f9061449b3dac0a5436ca16a3e
tree17e5c0be268f9867c5065186d995ba521940916c
parent1b25a3994e8c6be41b9ec8041a9c61ad2ae01f69
[XRay][clang] Add a flag to enable/disable linking XRay deps explicitly

Summary:
This change introduces `-fxray-link-deps` and `-fnoxray-link-deps`. The
`-fnoxray-link-deps` allows for directly controlling which specific XRay
runtime to link. The default is for clang to link the XRay runtime that
is shipped with the compiler (if there are any), but users may want to
explicitly add the XRay dependencies from other locations or other
means.

Reviewers: eizan, echristo, chandlerc

Reviewed By: eizan

Subscribers: cfe-commits

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

llvm-svn: 329376
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/XRayArgs.h
clang/lib/Driver/XRayArgs.cpp
clang/test/Driver/XRay/xray-nolinkdeps.cpp [new file with mode: 0644]