[llvm] 77b6a4b - [gn build] Don't copy xray includes
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 27 08:51:40 PDT 2021
Author: Arthur Eubanks
Date: 2021-08-27T08:51:27-07:00
New Revision: 77b6a4bde4de37bd77f4846b3c31c1d0633a8f13
URL: https://github.com/llvm/llvm-project/commit/77b6a4bde4de37bd77f4846b3c31c1d0633a8f13
DIFF: https://github.com/llvm/llvm-project/commit/77b6a4bde4de37bd77f4846b3c31c1d0633a8f13.diff
LOG: [gn build] Don't copy xray includes
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
Added:
Modified:
llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
index cccde7ab900c..a0ee79e3a52b 100644
--- a/llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
@@ -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}}" ]
}
More information about the llvm-commits
mailing list