Merge "Fix libsepolwrap with SANITIZE_HOST=address" am: cdaf97bfbf am: 4deeab5cde am: a30b6a5c08

am: e92b7f1604

Change-Id: I0e0e1b2c525a26b5da8a3536df5ccfa72b9e79a8
This commit is contained in:
Dan Willemsen 2017-09-02 00:07:12 +00:00 committed by android-build-merger
commit 3107fa1a30

View file

@ -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 {