# Windows can't use Clang to build yet
ifneq ($(HOST_OS),windows)
LOCAL_CLANG := true
-include external/libcxx/libcxx.mk
+endif
+
+ifeq ($(FORCE_BUILD_LLVM_DEBUG),true)
+local_optflags = -O0 -g
+else
+local_optflags = -O2
endif
LOCAL_CFLAGS += \
-D_GNU_SOURCE \
-D__STDC_LIMIT_MACROS \
- -O2 \
+ $(local_optflags) \
-fomit-frame-pointer \
-Wall \
-W \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
-ifeq ($(LLVM_ENABLE_ASSERTION),true)
+ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true)
LOCAL_CFLAGS := \
$(LOCAL_CFLAGS) \
-D_DEBUG \
LOCAL_IS_HOST_MODULE := true
+ifeq ($(HOST_PREFER_32_BIT),true)
+LOCAL_MULTILIB := 32
+else
+LOCAL_MULTILIB := first
+endif
+
###########################################################
## Commands for running tblgen to compile a td file
###########################################################