diff options
author | Ian Rogers <irogers@google.com> | 2014-03-11 14:42:37 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-03-11 14:42:37 -0700 |
commit | 2bb9d97b7dd35f78e67c3a774f2029c22b4fbb0b (patch) | |
tree | bf33eb4f5470469615a0f04d073d120ef48ffe38 /mcld-device-build.mk | |
parent | d219db0be93109d1851cc03eb972cdc42c83f0bb (diff) | |
download | mclinker-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.mk | 4 |
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 \ |