Home | History | Annotate | Download | only in jni
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 LOCAL_MODULE := issue36131-flto-c++11
      5 LOCAL_SRC_FILES := issue36131-flto-c++11.cxx
      6 LOCAL_CFLAGS += -g -std=c++11
      7 LOCAL_CFLAGS += -flto
      8 LOCAL_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.
     12 ifneq ($(filter clang%,$(NDK_TOOLCHAIN_VERSION)),)
     13 LOCAL_CFLAGS += -fuse-ld=gold
     14 LOCAL_LDFLAGS += -fuse-ld=gold
     15 endif
     16 
     17 include $(BUILD_EXECUTABLE)
     18