diff --git a/core/binary.mk b/core/binary.mk index bb83126b83..c57a793884 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -143,7 +143,7 @@ ifeq ($(strip $(LOCAL_ADDRESS_SANITIZER)),true) my_static_libraries += $(ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES) endif -ifeq ($(strip $($(LOCAL_2ND_ARCH_VAR_PREFIX)WITHOUT_CLANG)),true) +ifeq ($(strip $($(LOCAL_2ND_ARCH_VAR_PREFIX)WITHOUT_$(my_prefix)CLANG)),true) LOCAL_CLANG := endif diff --git a/core/clang/config.mk b/core/clang/config.mk index 1fd69d7798..96f860d4e0 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -1,3 +1,11 @@ +## Clang configurations. + +# WITHOUT_CLANG covers both HOST and TARGET +ifeq ($(WITHOUT_CLANG),true) +WITHOUT_TARGET_CLANG := true +WITHOUT_HOST_CLANG := true +endif + ifeq (true,$(FORCE_BUILD_LLVM_COMPONENTS)) LLVM_PREBUILTS_PATH := $(BUILD_OUT_EXECUTABLES) LLVM_PREBUILTS_HEADER_PATH := external/clang/lib/include diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk index 7a7a0c9235..290cebe691 100644 --- a/core/combo/TARGET_linux-arm64.mk +++ b/core/combo/TARGET_linux-arm64.mk @@ -48,7 +48,7 @@ $(error Unknown ARM architecture version: $(TARGET_ARCH_VARIANT)) endif # TODO: Enable Clang when aarch64 prebuilt is added -WITHOUT_CLANG := true +WITHOUT_TARGET_CLANG := true include $(TARGET_ARCH_SPECIFIC_MAKEFILE) diff --git a/core/combo/TARGET_linux-mips64.mk b/core/combo/TARGET_linux-mips64.mk index c1c6439606..099edfad64 100644 --- a/core/combo/TARGET_linux-mips64.mk +++ b/core/combo/TARGET_linux-mips64.mk @@ -48,7 +48,7 @@ $(error Unknown MIPS architecture variant: $(TARGET_ARCH_VARIANT)) endif # TODO: Enable Clang when its mips64 prebuilt is added -WITHOUT_CLANG := true +WITHOUT_TARGET_CLANG := true include $(TARGET_ARCH_SPECIFIC_MAKEFILE)