blob: 97f55c3ea59291cfa959df90005afb1d377f091c [file] [log] [blame]
Colin Crossa53a0752016-05-16 18:11:29 -07001//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16//
17
18cc_library_static {
19 name: "liblsan",
20 host_supported: true,
21 defaults: ["asan_arch_defaults"],
22 include_dirs: [
23 "external/compiler-rt/lib",
24 "external/compiler-rt/include",
25 ],
26 cflags: [
27 "-fvisibility=hidden",
28 "-fno-exceptions",
29 "-Wno-covered-switch-default",
30 "-Wno-non-virtual-dtor",
31 "-Wno-sign-compare",
32 "-Wno-unused-parameter",
33 "-std=c++11",
34 "-fno-rtti",
35 "-fno-builtin",
36 ],
37 srcs: [
38 "lsan_common.cc",
39 "lsan_common_linux.cc",
40 ],
41
42 clang: true,
43 sdk_version: "19",
44 stl: "none",
45
46 sanitize: {
47 never: true,
48 },
49}