2014-02-07 03:08:44 +01:00
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/clang/arm64.mk
|
|
|
|
|
2014-03-07 22:18:44 +01:00
|
|
|
CLANG_CONFIG_arm64_TARGET_TRIPLE := aarch64-linux-android
|
2014-02-07 03:08:44 +01:00
|
|
|
CLANG_CONFIG_arm64_TARGET_TOOLCHAIN_PREFIX := \
|
|
|
|
$(TARGET_TOOLCHAIN_ROOT)/$(CLANG_CONFIG_arm64_TARGET_TRIPLE)/bin
|
|
|
|
|
|
|
|
CLANG_CONFIG_arm64_TARGET_EXTRA_ASFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_ASFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_EXTRA_ASFLAGS) \
|
|
|
|
-target $(CLANG_CONFIG_arm64_TARGET_TRIPLE) \
|
|
|
|
-B$(CLANG_CONFIG_arm64_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
|
|
|
|
CLANG_CONFIG_arm64_TARGET_EXTRA_CFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_EXTRA_CFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_TARGET_EXTRA_ASFLAGS)
|
|
|
|
|
2014-11-26 09:53:46 +01:00
|
|
|
CLANG_CONFIG_arm64_TARGET_EXTRA_CONLYFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CONLYFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CONLYFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_EXTRA_CONLYFLAGS)
|
|
|
|
|
2014-02-07 03:08:44 +01:00
|
|
|
CLANG_CONFIG_arm64_TARGET_EXTRA_CPPFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_CPPFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_CPPFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_EXTRA_CPPFLAGS) \
|
|
|
|
|
|
|
|
CLANG_CONFIG_arm64_TARGET_EXTRA_LDFLAGS := \
|
|
|
|
$(CLANG_CONFIG_EXTRA_LDFLAGS) \
|
|
|
|
$(CLANG_CONFIG_TARGET_EXTRA_LDFLAGS) \
|
|
|
|
$(CLANG_CONFIG_arm64_EXTRA_LDFLAGS) \
|
|
|
|
-target $(CLANG_CONFIG_arm64_TARGET_TRIPLE) \
|
|
|
|
-B$(CLANG_CONFIG_arm64_TARGET_TOOLCHAIN_PREFIX)
|
|
|
|
|
|
|
|
|
|
|
|
define convert-to-clang-flags
|
|
|
|
$(strip \
|
|
|
|
$(call subst-clang-incompatible-arm64-flags,\
|
|
|
|
$(filter-out $(CLANG_CONFIG_arm64_UNKNOWN_CFLAGS),\
|
|
|
|
$(1))))
|
|
|
|
endef
|
|
|
|
|
|
|
|
CLANG_TARGET_GLOBAL_CFLAGS := \
|
|
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_CFLAGS)) \
|
|
|
|
$(CLANG_CONFIG_arm64_TARGET_EXTRA_CFLAGS)
|
|
|
|
|
2014-11-26 09:53:46 +01:00
|
|
|
CLANG_TARGET_GLOBAL_CONLYFLAGS := \
|
|
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_CONLYFLAGS)) \
|
|
|
|
$(CLANG_CONFIG_arm64_TARGET_EXTRA_CONLYFLAGS)
|
|
|
|
|
2014-02-07 03:08:44 +01:00
|
|
|
CLANG_TARGET_GLOBAL_CPPFLAGS := \
|
|
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_CPPFLAGS)) \
|
|
|
|
$(CLANG_CONFIG_arm64_TARGET_EXTRA_CPPFLAGS)
|
|
|
|
|
|
|
|
CLANG_TARGET_GLOBAL_LDFLAGS := \
|
|
|
|
$(call convert-to-clang-flags,$(TARGET_GLOBAL_LDFLAGS)) \
|
|
|
|
$(CLANG_CONFIG_arm64_TARGET_EXTRA_LDFLAGS)
|
|
|
|
|
2014-03-07 22:18:44 +01:00
|
|
|
RS_TRIPLE := aarch64-linux-android
|
2014-08-29 23:43:53 +02:00
|
|
|
RS_TRIPLE_CFLAGS :=
|
2014-09-03 04:09:35 +02:00
|
|
|
RS_COMPAT_TRIPLE := aarch64-linux-android
|
2015-01-26 01:20:57 +01:00
|
|
|
|
|
|
|
TARGET_LIBPROFILE_RT := $(LLVM_RTLIB_PATH)/libclang_rt.profile-aarch64-android.a
|
2015-04-25 01:34:47 +02:00
|
|
|
|
|
|
|
# Address sanitizer clang config
|
2015-11-19 07:13:16 +01:00
|
|
|
ADDRESS_SANITIZER_RUNTIME_LIBRARY := libclang_rt.asan-aarch64-android
|
2015-07-11 03:06:51 +02:00
|
|
|
ADDRESS_SANITIZER_LINKER := /system/bin/linker_asan64
|