Revert "ANDROID: Kbuild, LLVMLinux: allow overriding clang target triple"
This reverts commit f0907aa15e
.
We will apply a better version backported from experimental/android-4.19.
Bug: 118442619
Change-Id: I8e2be21dd6b4ce659d60cb871438d022adb680e1
Signed-off-by: Alistair Strachan <astrachan@google.com>
This commit is contained in:
parent
bc1cf2226c
commit
e3d1cdc82d
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -611,8 +611,7 @@ all: vmlinux
|
||||||
|
|
||||||
ifeq ($(cc-name),clang)
|
ifeq ($(cc-name),clang)
|
||||||
ifneq ($(CROSS_COMPILE),)
|
ifneq ($(CROSS_COMPILE),)
|
||||||
CLANG_TRIPLE ?= $(CROSS_COMPILE)
|
CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%))
|
||||||
CLANG_TARGET := --target=$(notdir $(CLANG_TRIPLE:%-=%))
|
|
||||||
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
|
GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
|
||||||
CLANG_PREFIX := --prefix=$(GCC_TOOLCHAIN_DIR)
|
CLANG_PREFIX := --prefix=$(GCC_TOOLCHAIN_DIR)
|
||||||
GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
|
GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
|
||||||
|
|
Loading…
Add table
Reference in a new issue