• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := flto
5LOCAL_SRC_FILES := flto.c
6LOCAL_CFLAGS += -flto
7LOCAL_LDFLAGS += -flto
8
9# Clang LTO is only supported with gold. ARM64 still uses bfd by default, so
10# make sure this test uses gold when we're using clang.
11ifneq ($(filter clang%,$(NDK_TOOLCHAIN_VERSION)),)
12LOCAL_CFLAGS += -fuse-ld=gold
13LOCAL_LDFLAGS += -fuse-ld=gold
14endif
15
16include $(BUILD_EXECUTABLE)
17