]> granicus.if.org Git - clang/commit
[XRay][Driver] Do not link in XRay runtime in shared libs
authorDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 03:18:11 +0000 (03:18 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 26 Sep 2017 03:18:11 +0000 (03:18 +0000)
commit3d6b342fee947f19830af2267263e710d90c8a01
treedac393e29c19526deaf3eb53080221d029a979f3
parentd0c074c761041b18533f1e7a22b2b3d51fdef47c
[XRay][Driver] Do not link in XRay runtime in shared libs

Summary:
This change ensures that we don't link in the XRay runtime when building
shared libraries with clang. This doesn't prevent us from building
shared libraris tht have XRay instrumentation sleds, but it does prevent
us from linking in the static XRay runtime into a shared library.

The XRay runtime currently doesn't support dynamic registration of
instrumentation sleds in shared objects, which we'll start enabling in
the future. That work has to happen in the back-end and in the runtime.

Reviewers: rnk, pelikan

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Gnu.cpp
test/Driver/XRay/lit.local.cfg
test/Driver/XRay/xray-shared-noxray.cpp [new file with mode: 0644]