summaryrefslogtreecommitdiff
path: root/mcld-device-build.mk
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-03-11 14:42:37 -0700
committerIan Rogers <irogers@google.com>2014-03-11 14:42:37 -0700
commit2bb9d97b7dd35f78e67c3a774f2029c22b4fbb0b (patch)
treebf33eb4f5470469615a0f04d073d120ef48ffe38 /mcld-device-build.mk
parentd219db0be93109d1851cc03eb972cdc42c83f0bb (diff)
downloadmclinker-2bb9d97b7dd35f78e67c3a774f2029c22b4fbb0b.tar.gz
Work-around OS flex differences.
Linux flex generates declarations with int vs Darwin with size_t. Switch host build to clang for better error messages. Disable Werror until errors are dealt with. Change-Id: I0abc8923dd1e57d55e8f318c7d1fcf8f8c975571
Diffstat (limited to 'mcld-device-build.mk')
-rw-r--r--mcld-device-build.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcld-device-build.mk b/mcld-device-build.mk
index 87bc0b7..744edcf 100644
--- a/mcld-device-build.mk
+++ b/mcld-device-build.mk
@@ -23,6 +23,10 @@ ifeq ($(MCLD_ENABLE_ASSERTION),true)
-UNDEBUG
endif
+ifeq ($(HOST_OS),darwin)
+LOCAL_CFLAGS += -DDARWIN_FLEX=1
+endif
+
# Make sure bionic is first so we can include system headers.
LOCAL_C_INCLUDES := \
bionic \