Error on USE_CLANG_PLATFORM_BUILD=
A blank USE_CLANG_PLATFORM_BUILD= on the command line for make causes confusion between make and kati. make ignores writes to variables set on the command line, so envsetup.mk cannot set it to true, USE_CLANG_PLATFORM_BUILD is still empty in soong.mk, and soong.variables gets DeviceUsesClang: false. kati gets USE_CLANG_PLATFORM_BUILD= in its environment instead of on its command line, so envsetup.mk when parsed by kati sets USE_CLANG_PLATFORM_BUILD=true. Error out early if USE_CLANG_PLATFORM_BUILD is not true or false after attempting to set it to true if it is empty. Change-Id: I0e2731315711db9a6ac6ea2bf49c88bccacd35f7
This commit is contained in:
parent
30b57cd7d5
commit
b267cbabba
1 changed files with 6 additions and 0 deletions
|
@ -475,3 +475,9 @@ endif
|
|||
ifeq ($(USE_CLANG_PLATFORM_BUILD),)
|
||||
USE_CLANG_PLATFORM_BUILD := true
|
||||
endif
|
||||
|
||||
ifneq ($(USE_CLANG_PLATFORM_BUILD),true)
|
||||
ifneq ($(USE_CLANG_PLATFORM_BUILD),false)
|
||||
$(error USE_CLANG_PLATFORM_BUILD must be true or false)
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue