[Lldb-commits] [lldb] r203649 - Add some missing defines that are already present in the cmake side.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Wed Mar 12 03:35:01 PDT 2014
Author: abidh
Date: Wed Mar 12 05:35:00 2014
New Revision: 203649
URL: http://llvm.org/viewvc/llvm-project?rev=203649&view=rev
Log:
Add some missing defines that are already present in the cmake side.
This is to help fix mingw build.
Modified:
lldb/trunk/Makefile
lldb/trunk/source/API/Makefile
Modified: lldb/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/Makefile?rev=203649&r1=203648&r2=203649&view=diff
==============================================================================
--- lldb/trunk/Makefile (original)
+++ lldb/trunk/Makefile Wed Mar 12 05:35:00 2014
@@ -38,6 +38,11 @@ CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LE
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/Utility
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/POSIX
+# Disable python and curses on mingw build
+ifeq ($(HOST_OS),MingW)
+CXXFLAGS += -DLLDB_DISABLE_PYTHON -DLLDB_DISABLE_CURSES
+endif
+
ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
# Set Python include directory
PYTHON_INC_DIR = $(shell python-config --includes)
Modified: lldb/trunk/source/API/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/Makefile?rev=203649&r1=203648&r2=203649&view=diff
==============================================================================
--- lldb/trunk/source/API/Makefile (original)
+++ lldb/trunk/source/API/Makefile Wed Mar 12 05:35:00 2014
@@ -12,3 +12,7 @@ LIBRARYNAME := lldbAPI
BUILD_ARCHIVE = 1
include $(LLDB_LEVEL)/Makefile
+
+ifeq ($(HOST_OS),MingW)
+CXXFLAGS += -DEXPORT_LIBLLDB
+endif
More information about the lldb-commits
mailing list