[llvm] r342859 - [XRay] Clean up XRay build configuration
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 23 22:28:02 PDT 2018
Author: dberris
Date: Sun Sep 23 22:28:01 2018
New Revision: 342859
URL: http://llvm.org/viewvc/llvm-project?rev=342859&view=rev
Log:
[XRay] Clean up XRay build configuration
Summary:
This change spans both LLVM and compiler-rt, where we do the following:
- Add XRay to the LLVMBuild system, to allow for distributing the XRay
trace loading library along with the LLVM distributions.
- Use `llvm-config` better in the compiler-rt XRay implementation, to
depend on the potentially already-distributed LLVM XRay library.
While this is tested with the standalone compiler-rt build, it does
require that the LLVMXRay library (and LLVMSupport as well) are
available during the build. In case the static libraries are available,
the unit tests will build and work fine. We're still having issues with
attempting to use a shared library version of the LLVMXRay library since
the shared library might not be accessible from the standard shared
library lookup paths.
The larger change here is the inclusion of the LLVMXRay library in the
distribution, which allows for building tools around the XRay traces and
profiles that the XRay runtime already generates.
Reviewers: echristo, beanz
Subscribers: mgorny, hiraditya, mboerger, llvm-commits
Differential Revision: https://reviews.llvm.org/D52349
Added:
llvm/trunk/lib/XRay/LLVMBuild.txt
Modified:
llvm/trunk/lib/LLVMBuild.txt
Modified: llvm/trunk/lib/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LLVMBuild.txt?rev=342859&r1=342858&r2=342859&view=diff
==============================================================================
--- llvm/trunk/lib/LLVMBuild.txt (original)
+++ llvm/trunk/lib/LLVMBuild.txt Sun Sep 23 22:28:01 2018
@@ -44,6 +44,7 @@ subdirectories =
ToolDrivers
Transforms
WindowsManifest
+ XRay
[component_0]
type = Group
Added: llvm/trunk/lib/XRay/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/XRay/LLVMBuild.txt?rev=342859&view=auto
==============================================================================
--- llvm/trunk/lib/XRay/LLVMBuild.txt (added)
+++ llvm/trunk/lib/XRay/LLVMBuild.txt Sun Sep 23 22:28:01 2018
@@ -0,0 +1,23 @@
+;===- ./lib/XRay/LLVMBuild.txt ---------------------------------*- Conf -*--===;
+;
+; The LLVM Compiler Infrastructure
+;
+; This file is distributed under the University of Illinois Open Source
+; License. See LICENSE.TXT for details.
+;
+;===------------------------------------------------------------------------===;
+;
+; This is an LLVMBuild description file for the components in this subdirectory.
+;
+; For more information on the LLVMBuild system, please see:
+;
+; http://llvm.org/docs/LLVMBuild.html
+;
+;===------------------------------------------------------------------------===;
+
+[component_0]
+type = Library
+name = XRay
+parent = Libraries
+required_libraries = Support Object
+installed = 1
More information about the llvm-commits
mailing list