1*b7c941bbSAndroid Build Coastguard Worker# Copyright (C) 2011 The Android Open Source Project 2*b7c941bbSAndroid Build Coastguard Worker# 3*b7c941bbSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*b7c941bbSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*b7c941bbSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*b7c941bbSAndroid Build Coastguard Worker# 7*b7c941bbSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*b7c941bbSAndroid Build Coastguard Worker# 9*b7c941bbSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*b7c941bbSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*b7c941bbSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*b7c941bbSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*b7c941bbSAndroid Build Coastguard Worker# limitations under the License. 14*b7c941bbSAndroid Build Coastguard Worker 15*b7c941bbSAndroid Build Coastguard Worker# 16*b7c941bbSAndroid Build Coastguard Worker# Builds an executable: 17*b7c941bbSAndroid Build Coastguard Worker# 18*b7c941bbSAndroid Build Coastguard Worker# Replace "include $(BUILD_EXECUTABLE)" with "include $(BUILD_CTS_EXECUTABLE)" 19*b7c941bbSAndroid Build Coastguard Worker# 20*b7c941bbSAndroid Build Coastguard Worker 21*b7c941bbSAndroid Build Coastguard Worker# Implicitly run this test under MTE SYNC for aarch64 binaries. This is a no-op 22*b7c941bbSAndroid Build Coastguard Worker# on non-MTE hardware. 23*b7c941bbSAndroid Build Coastguard Workermy_arch := $(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH) 24*b7c941bbSAndroid Build Coastguard Workerifneq (,$(filter arm64,$(my_arch))) 25*b7c941bbSAndroid Build Coastguard Worker LOCAL_WHOLE_STATIC_LIBRARIES += note_memtag_heap_sync 26*b7c941bbSAndroid Build Coastguard Workerendif 27*b7c941bbSAndroid Build Coastguard Worker 28*b7c941bbSAndroid Build Coastguard Workerinclude $(BUILD_EXECUTABLE) 29