blob: 93ac810510d9e21c0d42154cf021bbbceafd1dd2 [file] [log] [blame]
Alexander Martinz5a342e62022-03-09 16:31:48 +01001#
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
20# LLVM. This variable is set by external/clang/build.py.
21ifneq (true,$(FORCE_BUILD_SANITIZER_SHARED_OBJECTS))
22
23libclang_dir := $(LLVM_PREBUILTS_VERSION)/lib64/clang/$(LLVM_RELEASE_VERSION)
24
25# 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)
34LOCAL_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)
46LOCAL_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)
58LOCAL_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
66endif