[PATCH] D26597: [XRay][compiler-rt] Disable XRay instrumentation of the XRay runtime.

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 21:43:00 PST 2016


dberris created this revision.
dberris added reviewers: majnemer, rSerge, echristo.
dberris added a subscriber: llvm-commits.
Herald added subscribers: mgorny, mehdi_amini.

Adds a CMake check for whether the compiler used to build the XRay
library supports XRay-instrumentation. If the compiler we're using does
support the `-fxray-instrument` flag (i.e. recently-built Clang), we
define the XRAY_NEVER_INSTRUMENT macro that then makes sure that the
XRay runtime functions never get XRay-instrumented.

This prevents potential weirdness involved with building the XRay
library with a Clang that supports XRay-instrumentation, and is
attempting to XRay-instrument the build of compiler-rt.


https://reviews.llvm.org/D26597

Files:
  cmake/builtin-config-ix.cmake
  lib/xray/CMakeLists.txt
  lib/xray/xray_arm.cc
  lib/xray/xray_defs.h
  lib/xray/xray_flags.cc
  lib/xray/xray_init.cc
  lib/xray/xray_inmemory_log.cc
  lib/xray/xray_interface.cc
  lib/xray/xray_x86_64.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26597.77768.patch
Type: text/x-patch
Size: 16760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161114/e4e93937/attachment.bin>


More information about the llvm-commits mailing list