blob: 93ac810510d9e21c0d42154cf021bbbceafd1dd2 [file] [log] [blame]
Stephen Hines82d98cc2015-10-19 16:18:51 -07001#
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
17LOCAL_PATH := $(call my-dir)
18
19# Use these prebuilts unless we are actually building from a newly rebased
Dan Albertcaf555b2015-11-13 23:34:59 -080020# LLVM. This variable is set by external/clang/build.py.
Stephen Hines82d98cc2015-10-19 16:18:51 -070021ifneq (true,$(FORCE_BUILD_SANITIZER_SHARED_OBJECTS))
22
Stephen Hines8eb2cea2017-01-11 15:21:17 -080023libclang_dir := $(LLVM_PREBUILTS_VERSION)/lib64/clang/$(LLVM_RELEASE_VERSION)
Dan Albertcaf555b2015-11-13 23:34:59 -080024
Stephen Hines3a1e6a62016-10-11 23:21:15 -070025# Also build/install the newest asan_test for each arch
26# We rename it to asan-test for now to avoid duplicate definitions.
27
28include $(CLEAR_VARS)
29LOCAL_MODULE := asan-test
30LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/arm/bin/asan_test
31LOCAL_MODULE_CLASS := EXECUTABLES
32LOCAL_MODULE_SUFFIX :=
33LOCAL_MODULE_PATH := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
Stephen Hines3a1e6a62016-10-11 23:21:15 -070034LOCAL_MODULE_TARGET_ARCH := arm
35LOCAL_SANITIZE := never
36LOCAL_SYSTEM_SHARED_LIBRARIES :=
37LOCAL_CXX_STL := none
38include $(BUILD_PREBUILT)
39
40include $(CLEAR_VARS)
41LOCAL_MODULE := asan-test
42LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/aarch64/bin/asan_test
43LOCAL_MODULE_CLASS := EXECUTABLES
44LOCAL_MODULE_SUFFIX :=
45LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
Stephen Hines3a1e6a62016-10-11 23:21:15 -070046LOCAL_MODULE_TARGET_ARCH := arm64
47LOCAL_SANITIZE := never
48LOCAL_SYSTEM_SHARED_LIBRARIES :=
49LOCAL_CXX_STL := none
50include $(BUILD_PREBUILT)
51
52include $(CLEAR_VARS)
53LOCAL_MODULE := asan-test
54LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/i686/bin/asan_test
55LOCAL_MODULE_CLASS := EXECUTABLES
56LOCAL_MODULE_SUFFIX :=
57LOCAL_MODULE_PATH := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
Stephen Hines3a1e6a62016-10-11 23:21:15 -070058LOCAL_MODULE_TARGET_ARCH := x86
59LOCAL_SANITIZE := never
60LOCAL_SYSTEM_SHARED_LIBRARIES :=
61LOCAL_CXX_STL := none
62include $(BUILD_PREBUILT)
63
64# There is no x86_64 prebuilt here yet.
65
Stephen Hines82d98cc2015-10-19 16:18:51 -070066endif