Don't build LLDBWrapPython.cpp for mingw.

Previous check relied on -DLLDB_DISABLE_PYTHON which was not valid as
it is defined in the top level LLDB Makefile which is included after the check.
If this check is moved after the inclusion of top level Makefile then 
BUILT_SOURCES is not properly handled. So I am using the scheme present
in the Host/Makefile.

llvm-svn: 204459
This commit is contained in:
Hafiz Abid Qadeer 2014-03-21 12:53:28 +00:00
parent a125d53a7b
commit 8455c44e6c
1 changed files with 2 additions and 1 deletions

View File

@ -10,8 +10,9 @@
LLDB_LEVEL := ../..
LIBRARYNAME := lldbInterpreter
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/../../Makefile.config
ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
ifneq ($(HOST_OS),MingW)
BUILT_SOURCES := LLDBWrapPython.cpp
endif