Merge "Fix libsepolwrap with SANITIZE_HOST=address"
am: cdaf97bfbf
Change-Id: Ibcb3d728c233530f7354b409bf3849a021532b5d
This commit is contained in:
commit
4deeab5cde
1 changed files with 10 additions and 1 deletions
|
@ -1,9 +1,18 @@
|
|||
cc_library_host_shared {
|
||||
name: "libsepolwrap",
|
||||
srcs: ["sepol_wrap.cpp"],
|
||||
shared_libs: ["libbase", "libsepol"],
|
||||
shared_libs: ["libsepol"],
|
||||
cflags: ["-Wall", "-Werror",],
|
||||
export_include_dirs: ["include"],
|
||||
|
||||
// libsepolwrap gets loaded from the system python, which does not have the
|
||||
// ASAN runtime. So turn off sanitization for ourself, and use static
|
||||
// libraries, since the shared libraries will use ASAN.
|
||||
static_libs: ["libbase"],
|
||||
stl: "libc++_static",
|
||||
sanitize: {
|
||||
never: true,
|
||||
},
|
||||
}
|
||||
|
||||
cc_prebuilt_binary {
|
||||
|
|
Loading…
Reference in a new issue