mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
gn build: Add support for building ubsan_minimal.
Differential Revision: https://reviews.llvm.org/D104754
This commit is contained in:
parent
c6ff0d26c8
commit
5b5b35d51b
@ -8,6 +8,7 @@ group("lib") {
|
||||
"//compiler-rt/lib/asan",
|
||||
"//compiler-rt/lib/builtins",
|
||||
"//compiler-rt/lib/tsan",
|
||||
"//compiler-rt/lib/ubsan_minimal",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
18
utils/gn/secondary/compiler-rt/lib/ubsan_minimal/BUILD.gn
Normal file
18
utils/gn/secondary/compiler-rt/lib/ubsan_minimal/BUILD.gn
Normal file
@ -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" ]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user