[gn build] Don't copy xray includes
authorArthur Eubanks <aeubanks@google.com>
Wed, 25 Aug 2021 22:24:49 +0000 (15:24 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 27 Aug 2021 15:51:27 +0000 (08:51 -0700)
The gn build doesn't support xray, so there's no reason to make the xray
headers available. Some CMake checks check if xray includes are
available to determine if xray is usable. Since we don't build the xray
runtime, there are link errors.

Reviewed By: thakis

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

llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn

index cccde7a..a0ee79e 100644 (file)
@@ -19,9 +19,14 @@ copy("include") {
     "sanitizer/tsan_interface.h",
     "sanitizer/tsan_interface_atomic.h",
     "sanitizer/ubsan_interface.h",
+  ]
+  outputs = [ "$clang_resource_dir/include/{{source_target_relative}}" ]
+}
+
+source_set("_unused") {
+  sources = [
     "xray/xray_interface.h",
     "xray/xray_log_interface.h",
     "xray/xray_records.h",
   ]
-  outputs = [ "$clang_resource_dir/include/{{source_target_relative}}" ]
 }