• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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        "-Wall",
37        "-Werror",
38    ],
39    srcs: [
40        "lsan_common.cc",
41        "lsan_common_linux.cc",
42    ],
43
44    sdk_version: "19",
45    stl: "none",
46
47    sanitize: {
48        never: true,
49    },
50}
51