diff options
author | Pavel Labath <labath@google.com> | 2017-03-13 12:07:48 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-03-13 12:07:48 +0000 |
commit | 7163ecb4294ede871a9fe5e5d27b6937d5bade7e (patch) | |
tree | 55f30961a07056b86f6ae7734fb10d0660a94584 /lldb/packages/Python/lldbsuite/test/make/Makefile.rules | |
parent | 6a3b059fb7309cc41b75e7d33d7c8c4b668584d4 (diff) | |
download | bcm5719-llvm-7163ecb4294ede871a9fe5e5d27b6937d5bade7e.tar.gz bcm5719-llvm-7163ecb4294ede871a9fe5e5d27b6937d5bade7e.zip |
Android.rules: Add libc++ support
Summary:
This adds support for building libc++ tests when targetting android. The
tests are still not passing due to several other problems, but this way
we can at least build them.
Reviewers: eugene, EricWF, danalbert
Subscribers: srhines, lldb-commits
Differential Revision: https://reviews.llvm.org/D30737
llvm-svn: 297616
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/make/Makefile.rules')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 40ab4023f3e..30f3e9c39b0 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -326,15 +326,19 @@ endif ifeq (1,$(USE_LIBCPP)) # Clang requires an extra flag: -stdlib=libstdc++ ifneq (,$(findstring clang,$(CC))) + CXXFLAGS += -DLLDB_USING_LIBCPP ifeq "$(OS)" "Linux" # This is the default install location on Ubuntu 14.04 ifneq ($(wildcard /usr/include/c++/v1/.),) - CXXFLAGS += -stdlib=libc++ -DLLDB_USING_LIBCPP + CXXFLAGS += -stdlib=libc++ LDFLAGS += -stdlib=libc++ CXXFLAGS += -I/usr/include/c++/v1 endif + else ifeq "$(OS)" "Android" + # Nothing to do, this is already handled in + # Android.rules. else - CXXFLAGS += -stdlib=libc++ -DLLDB_USING_LIBCPP + CXXFLAGS += -stdlib=libc++ LDFLAGS += -stdlib=libc++ endif endif |