From 18baabbb1ce021012c88695d52dfb58b119ac60b Mon Sep 17 00:00:00 2001 From: Pengxuan Zheng Date: Mon, 8 May 2017 16:49:49 -0700 Subject: [PATCH] Add support for using the secondary SDLLVM toolchain If LOCAL_SDCLANG_2 is set to true, the secondary SDLLVM toolchain (SDCLANG_PATH_2) will be used instead. Change-Id: Icb7492562aeaa3c584edcbced8fe1e98776774bd --- sdllvm-lto-defs.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdllvm-lto-defs.mk b/sdllvm-lto-defs.mk index 74fa49dc..f965dd83 100644 --- a/sdllvm-lto-defs.mk +++ b/sdllvm-lto-defs.mk @@ -2,6 +2,11 @@ ifeq ($(LOCAL_MODULE_CLASS), STATIC_LIBRARIES) # For STATIC_LIBRARIES we need to use SD LLVM's archiver and archiver flags. AR := $(SDCLANG_PATH)/llvm-ar + +ifeq ($(LOCAL_SDCLANG_2),true) +AR := $(SDCLANG_PATH_2)/llvm-ar +endif + ARFLAGS := crsD # For 32 bit