1//
2// Copyright (C) 2015 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
18//###############################################################################
19// Host modules
20
21cc_library_static {
22    name: "libsan",
23    host_supported: true,
24    sdk_version: "19",
25
26    include_dirs: ["external/compiler-rt/lib"],
27    cflags: [
28        "-Wall",
29        "-Werror",
30    ],
31    cppflags: [
32        "-fvisibility=hidden",
33        "-fno-exceptions",
34        "-fno-rtti",
35        "-fno-builtin",
36        "-std=c++11",
37        "-Wno-non-virtual-dtor",
38        "-Wno-unused-parameter",
39    ],
40    srcs: [
41        "*.cc",
42    ],
43    exclude_srcs: [
44        "sanitizer_common_nolibc.cc",
45    ],
46    arch: {
47        x86_64: {
48            srcs: [
49                "sanitizer_linux_x86_64.S",
50            ]
51        }
52    },
53    stl: "none",
54    sanitize: {
55        never: true,
56    },
57    compile_multilib: "both",
58    target: {
59        darwin: {
60            enabled: false,
61        },
62    },
63}
64
65subdirs = ["tests"]
66
67// ANDROIDMK TRANSLATION ERROR: unsupported conditional
68// ifndef SANITIZE_HOST
69// ANDROIDMK TRANSLATION ERROR: unsupported include
70// include $(LOCAL_PATH)/tests/Android.mk
71// ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional
72// endif
73