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
gugelfrei
Pengxuan Zheng 7 years ago committed by Michael Bestas
parent dc8df22add
commit 7f5d4e1050

@ -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

@ -953,6 +953,7 @@ if [ -d $(gettop)/prebuilts/snapdragon-llvm/toolchains ]; then
*)
export SDCLANG=true
export SDCLANG_PATH=$(gettop)/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for_Android_3.8/prebuilt/linux-x86_64/bin
export SDCLANG_PATH_2=$(gettop)/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for_Android_3.8/prebuilt/linux-x86_64/bin
export SDCLANG_LTO_DEFS=$(gettop)/vendor/lineage/build/core/sdllvm-lto-defs.mk
;;
esac

Loading…
Cancel
Save