[PATCH] D104754: gn build: Add support for building ubsan_minimal.
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 14:44:55 PDT 2021
pcc created this revision.
pcc added a reviewer: thakis.
pcc requested review of this revision.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104754
Files:
llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/ubsan_minimal/BUILD.gn
Index: llvm/utils/gn/secondary/compiler-rt/lib/ubsan_minimal/BUILD.gn
===================================================================
--- /dev/null
+++ llvm/utils/gn/secondary/compiler-rt/lib/ubsan_minimal/BUILD.gn
@@ -0,0 +1,20 @@
+import("//compiler-rt/target.gni")
+
+source_set("sources") {
+ configs -= [ "//llvm/utils/gn/build:llvm_code" ]
+ configs += [ "//llvm/utils/gn/build:crt_code" ]
+}
+
+static_library("ubsan_minimal") {
+ output_dir = crt_current_out_dir
+ output_name = "clang_rt.ubsan_minimal$crt_current_target_suffix"
+ complete_static_lib = true
+ configs -= [
+ "//llvm/utils/gn/build:llvm_code",
+ "//llvm/utils/gn/build:thin_archive",
+ ]
+ configs += [ "//llvm/utils/gn/build:crt_code" ]
+ sources = [
+ "ubsan_minimal_handlers.cpp",
+ ]
+}
Index: llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
+++ llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
@@ -8,6 +8,7 @@
"//compiler-rt/lib/asan",
"//compiler-rt/lib/builtins",
"//compiler-rt/lib/tsan",
+ "//compiler-rt/lib/ubsan_minimal",
]
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104754.353800.patch
Type: text/x-patch
Size: 1195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210622/96505daa/attachment.bin>
More information about the llvm-commits
mailing list