[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 17:51:28 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6e962fcc3d67: gn build: Add support for building ubsan_minimal. (authored by pcc).
Changed prior to commit:
https://reviews.llvm.org/D104754?vs=353800&id=353831#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104754/new/
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,18 @@
+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.353831.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210623/ce82ece6/attachment.bin>
More information about the llvm-commits
mailing list