]> granicus.if.org Git - clang/commit
[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)
commitff0a62d6b5b1047b9c9f1949971d03022144e936
treeb6570eed5334e502e42ca3a61acab64f1891a446
parent20a40c8ec9513fc4379ef87ba28600fd12c56abe
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329376 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
include/clang/Driver/XRayArgs.h
lib/Driver/XRayArgs.cpp
test/Driver/XRay/xray-nolinkdeps.cpp [new file with mode: 0644]