summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorKeno Fischer <kfischer@college.harvard.edu>2014-09-09 04:52:37 +0000
committerKeno Fischer <kfischer@college.harvard.edu>2014-09-09 04:52:37 +0000
commit15d5e2b4d88abd6150b90a8ceb8fdc3df195af09 (patch)
tree8433cbd75df620978a18aeab107fb83232a45dda /lldb/scripts
parent5c00c31cf8273b6f39ef370b763253927c863daf (diff)
downloadbcm5719-llvm-15d5e2b4d88abd6150b90a8ceb8fdc3df195af09.tar.gz
bcm5719-llvm-15d5e2b4d88abd6150b90a8ceb8fdc3df195af09.zip
Fix configure & make build with python disabled
This makes sure that nothing that requires Python is being built when the LLDB_DISABLE_PYTHON flag is being passed in. It also changes a use of CPPFLAGS to CPP.Flags since the former is overridden when external flags are passed in while the later is not. I'm not sure exactly why LLDB_DISABLE_PYTHON is in CXXFLAGS rather than CPPFLAGS, but cleaning that up is for another commit. Differential Revision: http://reviews.llvm.org/D4918 llvm-svn: 217414
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/scripts/Makefile b/lldb/scripts/Makefile
index 814a5c678dc..807823f43e4 100644
--- a/lldb/scripts/Makefile
+++ b/lldb/scripts/Makefile
@@ -10,6 +10,8 @@
LLDB_LEVEL := ..
include $(LLDB_LEVEL)/../../Makefile.config
+ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
DIRS := Python
+endif
include $(LLDB_LEVEL)/Makefile
OpenPOWER on IntegriCloud