diff --git a/core/clang/config.mk b/core/clang/config.mk index e3f7bdd585..3bfcd87ee1 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -1,14 +1,7 @@ ## Clang configurations. -LLVM_PREBUILTS_PATH := $(LLVM_PREBUILTS_BASE)/$(BUILD_OS)-x86/$(LLVM_PREBUILTS_VERSION)/bin LLVM_RTLIB_PATH := $(LLVM_PREBUILTS_PATH)/../lib64/clang/$(LLVM_RELEASE_VERSION)/lib/linux/ -# These will come from Soong, drop the environment versions -unexport CLANG -unexport CLANG_CXX -unexport CCC_CC -unexport CCC_CXX - CLANG_TBLGEN := $(BUILD_OUT_EXECUTABLES)/clang-tblgen$(BUILD_EXECUTABLE_SUFFIX) LLVM_TBLGEN := $(BUILD_OUT_EXECUTABLES)/llvm-tblgen$(BUILD_EXECUTABLE_SUFFIX) diff --git a/core/clang/versions.mk b/core/clang/versions.mk index 03341d9607..d9c8aabccd 100644 --- a/core/clang/versions.mk +++ b/core/clang/versions.mk @@ -1,5 +1,3 @@ ## Clang/LLVM release versions. -LLVM_RELEASE_VERSION := 3.8 LLVM_PREBUILTS_VERSION ?= clang-3289846 -LLVM_PREBUILTS_BASE ?= prebuilts/clang/host diff --git a/core/config.mk b/core/config.mk index 9a35b2f906..2f43f46408 100644 --- a/core/config.mk +++ b/core/config.mk @@ -716,8 +716,11 @@ $(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_CPU_VARIANT := $(call first_non_empt $(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES := default endif -# define clang/llvm tools and global flags -include $(BUILD_SYSTEM)/clang/config.mk +# These will come from Soong, drop the environment versions +unexport CLANG +unexport CLANG_CXX +unexport CCC_CC +unexport CCC_CXX # ############################################################### # Collect a list of the SDK versions that we could compile against diff --git a/core/main.mk b/core/main.mk index 5a3042a9d3..77b213c68a 100644 --- a/core/main.mk +++ b/core/main.mk @@ -50,6 +50,8 @@ endif include $(SOONG_MAKEVARS_MK) +include $(BUILD_SYSTEM)/clang/config.mk + # Write the build number to a file so it can be read back in # without changing the command line every time. Avoids rebuilds # when using ninja.