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