From 8455c44e6cac3aa7bac2cee83e9bd9312f129b51 Mon Sep 17 00:00:00 2001 From: Hafiz Abid Qadeer Date: Fri, 21 Mar 2014 12:53:28 +0000 Subject: [PATCH] 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 --- lldb/source/Interpreter/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lldb/source/Interpreter/Makefile b/lldb/source/Interpreter/Makefile index a788b5ba5118..bbdf7be9aa1c 100644 --- a/lldb/source/Interpreter/Makefile +++ b/lldb/source/Interpreter/Makefile @@ -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