Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56c6a9d1 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Remove variables exported by Soong

LLVM_RELEASE_VERSION is unused from envsetup.sh and during product
config loading.  LLVM_PREBUILTS_VERSION is still used in envsetup.sh, so
needs to stay.

Delay reading core/clang/config.mk until after Soong's variables are
read so that we don't need a copy of LLVM_PREBUILTS_BASE.

Test: Compare build-aosp_flounder.ninja
Change-Id: I85b5836a2230838c8f3766fb19c6108fc5c9ca50
parent 620686f3
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
## Clang configurations.
## 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/
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)
CLANG_TBLGEN := $(BUILD_OUT_EXECUTABLES)/clang-tblgen$(BUILD_EXECUTABLE_SUFFIX)
LLVM_TBLGEN := $(BUILD_OUT_EXECUTABLES)/llvm-tblgen$(BUILD_EXECUTABLE_SUFFIX)
LLVM_TBLGEN := $(BUILD_OUT_EXECUTABLES)/llvm-tblgen$(BUILD_EXECUTABLE_SUFFIX)


+0 −2
Original line number Original line Diff line number Diff line
## Clang/LLVM release versions.
## Clang/LLVM release versions.


LLVM_RELEASE_VERSION := 3.8
LLVM_PREBUILTS_VERSION ?= clang-3289846
LLVM_PREBUILTS_VERSION ?= clang-3289846
LLVM_PREBUILTS_BASE ?= prebuilts/clang/host
+5 −2
Original line number Original line Diff line number Diff line
@@ -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
$(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES := default
endif
endif


# define clang/llvm tools and global flags
# These will come from Soong, drop the environment versions
include $(BUILD_SYSTEM)/clang/config.mk
unexport CLANG
unexport CLANG_CXX
unexport CCC_CC
unexport CCC_CXX


# ###############################################################
# ###############################################################
# Collect a list of the SDK versions that we could compile against
# Collect a list of the SDK versions that we could compile against
+2 −0
Original line number Original line Diff line number Diff line
@@ -50,6 +50,8 @@ endif


include $(SOONG_MAKEVARS_MK)
include $(SOONG_MAKEVARS_MK)


include $(BUILD_SYSTEM)/clang/config.mk

# Write the build number to a file so it can be read back in
# Write the build number to a file so it can be read back in
# without changing the command line every time.  Avoids rebuilds
# without changing the command line every time.  Avoids rebuilds
# when using ninja.
# when using ninja.