[Lldb-commits] [PATCH] D27305: Replace __ANDROID_NDK__ with simply ANDROID
Dan Albert via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 1 10:08:59 PST 2016
danalbert added inline comments.
================
Comment at: cmake/platforms/Android.cmake:36
# flags and definitions
remove_definitions( -DANDROID -D__ANDROID__ )
+add_definitions( -DANDROID -DLLDB_DISABLE_LIBEDIT )
----------------
You're removing it a line before just to add it back?
`__ANDROID__` is probably the one you want. That one is defined by Clang (and GCC if that matters) for any Android target, so no need to worry about dealing with it in cmake (or any other build system).
This isn't a concern right now, but if LLDB ever needed to become part of the Android platform build, `ANDROID` doesn't actually mean `ANDROID`; it gets set for host modules too :(
https://reviews.llvm.org/D27305
More information about the lldb-commits
mailing list