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