2019-06-05 00:39:52 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|
|
|
$(LOCAL_PATH)/Android.mk \
|
|
|
|
$(LOCAL_PATH)/touch-obj-on-success
|
|
|
|
|
|
|
|
LOCAL_CXX := $(LOCAL_PATH)/touch-obj-on-success \
|
|
|
|
$(LLVM_PREBUILTS_PATH)/clang++ \
|
|
|
|
|
|
|
|
LOCAL_CLANG := true
|
|
|
|
LOCAL_MODULE := bionic-compile-time-tests$(FORTIFY_LEVEL)-clang++
|
2021-02-19 22:06:22 +01:00
|
|
|
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
|
|
|
|
LOCAL_LICENSE_CONDITIONS := notice
|
|
|
|
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
|
2021-01-27 21:28:20 +01:00
|
|
|
LOCAL_TIDY := false
|
2019-06-05 00:39:52 +02:00
|
|
|
LOCAL_CPPFLAGS := -Wall -Wno-error
|
|
|
|
LOCAL_CPPFLAGS += -fno-color-diagnostics -ferror-limit=10000 -Xclang -verify
|
|
|
|
LOCAL_CPPFLAGS += -DCOMPILATION_TESTS=1 -Wformat-nonliteral
|
|
|
|
LOCAL_CPPFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=$(FORTIFY_LEVEL)
|
|
|
|
LOCAL_SRC_FILES := clang_fortify_tests.cpp
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
FORTIFY_LEVEL :=
|