Include mcld/Config/Config.h in command line.
MCLinker upstream builds with -DHAVE_XXX in command line instead of
having a single config file (e.g., config.h) including in every file.
This commit adds "-include mcld/Config/Config.h" to the build commands
as if -DHAVE_XXX is supplied through the command line.
Change-Id: I21329db658e5229146dc24eb7ef7f2bfca427cf1
diff --git a/mcld-device-build.mk b/mcld-device-build.mk
index 851c261..f868d99 100644
--- a/mcld-device-build.mk
+++ b/mcld-device-build.mk
@@ -8,6 +8,7 @@
-finline-limit=64 \
-finline-functions \
-fno-inline-functions-called-once \
+ -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
$(LOCAL_CFLAGS)
LOCAL_CPPFLAGS := \
diff --git a/mcld-host-build.mk b/mcld-host-build.mk
index c6bd67b..16ed62f 100644
--- a/mcld-host-build.mk
+++ b/mcld-host-build.mk
@@ -1,5 +1,9 @@
include $(LLVM_HOST_BUILD_MK)
+LOCAL_CFLAGS := \
+ -include $(MCLD_ROOT_PATH)/include/mcld/Config/Config.h \
+ $(LOCAL_CFLAGS)
+
LOCAL_CPPFLAGS := \
$(LOCAL_CPPFLAGS) \
-Wformat \