Alexander Martinz | 5a342e6 | 2022-03-09 16:31:48 +0100 | [diff] [blame] | 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 | LOCAL_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. |
| 21 | ifneq (true,$(FORCE_BUILD_SANITIZER_SHARED_OBJECTS)) |
| 22 | |
| 23 | libclang_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 | |
| 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_MODULE := asan-test |
| 30 | LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/arm/bin/asan_test |
| 31 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 32 | LOCAL_MODULE_SUFFIX := |
| 33 | LOCAL_MODULE_PATH := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 34 | LOCAL_MODULE_TARGET_ARCH := arm |
| 35 | LOCAL_SANITIZE := never |
| 36 | LOCAL_SYSTEM_SHARED_LIBRARIES := |
| 37 | LOCAL_CXX_STL := none |
| 38 | include $(BUILD_PREBUILT) |
| 39 | |
| 40 | include $(CLEAR_VARS) |
| 41 | LOCAL_MODULE := asan-test |
| 42 | LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/aarch64/bin/asan_test |
| 43 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 44 | LOCAL_MODULE_SUFFIX := |
| 45 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 46 | LOCAL_MODULE_TARGET_ARCH := arm64 |
| 47 | LOCAL_SANITIZE := never |
| 48 | LOCAL_SYSTEM_SHARED_LIBRARIES := |
| 49 | LOCAL_CXX_STL := none |
| 50 | include $(BUILD_PREBUILT) |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | LOCAL_MODULE := asan-test |
| 54 | LOCAL_SRC_FILES := $(LLVM_PREBUILTS_VERSION)/test/i686/bin/asan_test |
| 55 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 56 | LOCAL_MODULE_SUFFIX := |
| 57 | LOCAL_MODULE_PATH := $($(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 58 | LOCAL_MODULE_TARGET_ARCH := x86 |
| 59 | LOCAL_SANITIZE := never |
| 60 | LOCAL_SYSTEM_SHARED_LIBRARIES := |
| 61 | LOCAL_CXX_STL := none |
| 62 | include $(BUILD_PREBUILT) |
| 63 | |
| 64 | # There is no x86_64 prebuilt here yet. |
| 65 | |
| 66 | endif |