lineage: Trash the last bits of SDClang support
Change-Id: I9ccb9b931a63342e233578c3ddbc5ea6391af601
diff --git a/build/core/sdllvm-lto-defs.mk b/build/core/sdllvm-lto-defs.mk
deleted file mode 100644
index 0d202bd..0000000
--- a/build/core/sdllvm-lto-defs.mk
+++ /dev/null
@@ -1,34 +0,0 @@
-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
-$(LOCAL_BUILT_MODULE) : $(combo_2nd_arch_prefix)TARGET_AR := $(AR)
-$(LOCAL_BUILT_MODULE) : $(combo_var_prefix)GLOBAL_ARFLAGS := $(ARFLAGS)
-
-# For 64 bit
-intermediates := $(call local-intermediates-dir,,$(LOCAL_2ND_ARCH_VAR_PREFIX))
-LOCAL_BUILT_MODULE_64 := $(intermediates)/$(my_installed_module_stem)
-
-$(LOCAL_BUILT_MODULE_64) : TARGET_AR := $(AR)
-$(LOCAL_BUILT_MODULE_64) : TARGET_GLOBAL_ARFLAGS := $(ARFLAGS)
-
-else
-# For SHARED_LIBRARIES and EXECUTABLES we need to filter out flags not
-# needed/understood by SD LLVM's Linker.
-
-FLAGS_TO_BE_FILTERED := -Wl,--icf=safe -Wl,--no-undefined-version -Wl,--fix-cortex-a53-843419 -fuse-ld=gold
-linked_module_32 := $(intermediates)/LINKED/$(my_installed_module_stem)
-intermediates := $(call local-intermediates-dir,,$(LOCAL_2ND_ARCH_VAR_PREFIX))
-linked_module_64 := $(intermediates)/LINKED/$(my_installed_module_stem)
-
-$(linked_module_32) : PRIVATE_TARGET_GLOBAL_LDFLAGS := $(filter-out $(FLAGS_TO_BE_FILTERED),$(PRIVATE_TARGET_GLOBAL_LDFLAGS))
-$(linked_module_64) : PRIVATE_TARGET_GLOBAL_LDFLAGS := $(filter-out $(FLAGS_TO_BE_FILTERED),$(PRIVATE_TARGET_GLOBAL_LDFLAGS))
-endif
diff --git a/build/envsetup.sh b/build/envsetup.sh
index f9ed4ca..b73acf8 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -972,18 +972,3 @@
mkdir -p ${common_out_dir}
fi
}
-
-# Enable SD-LLVM if available
-if [ -d $(gettop)/prebuilts/snapdragon-llvm/toolchains ]; then
- case `uname -s` in
- Darwin)
- # Darwin is not supported yet
- ;;
- *)
- export SDCLANG=true
- export SDCLANG_PATH=$(gettop)/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for_Android_4.0/prebuilt/linux-x86_64/bin
- export SDCLANG_PATH_2=$(gettop)/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for_Android_4.0/prebuilt/linux-x86_64/bin
- export SDCLANG_LTO_DEFS=$(gettop)/vendor/lineage/build/core/sdllvm-lto-defs.mk
- ;;
- esac
-fi