[Lldb-commits] [lldb] r143390 - /lldb/trunk/source/Interpreter/Makefile

Daniel Dunbar daniel at zuster.org
Mon Oct 31 15:51:14 PDT 2011


Author: ddunbar
Date: Mon Oct 31 17:51:14 2011
New Revision: 143390

URL: http://llvm.org/viewvc/llvm-project?rev=143390&view=rev
Log:
build: Fix SWIG include paths on Darwin.

Modified:
    lldb/trunk/source/Interpreter/Makefile

Modified: lldb/trunk/source/Interpreter/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Makefile?rev=143390&r1=143389&r2=143390&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Makefile (original)
+++ lldb/trunk/source/Interpreter/Makefile Mon Oct 31 17:51:14 2011
@@ -32,9 +32,16 @@
 LLDB_SWIG_INCLUDE_DIRS += -I"/usr/local/include"
 LLDB_SWIG_INCLUDE_DIRS += -I"/usr/include"
 
+# On Darwin, stdint.h might only be in the compiler subdirectory. Unfortunately,
+# swig doesn't currently seem able to understand Clang's stdint.h, so we have to
+# point at the GCC one.
+ifeq ($(HOST_OS),Darwin)
+LLDB_SWIG_INCLUDE_DIRS += -I"/usr/include/gcc/darwin/4.2"
+endif
+
 SWIG_DEPEND_OPTIONS = -MMD -MF "$(PROJ_OBJ_DIR)/$*.cpp.d.tmp"
 CPP_DEPEND_MOVEFILE = then $(MV) -f "$(PROJ_OBJ_DIR)/$*.cpp.d.tmp" "$(PROJ_OBJ_DIR)/$*.cpp.d"; \
-                      else $(RM) "$(PROJ_OBJ_DIR)/$*.cpp.d.tmp"; exit 1; fi
+                      else $(RM) -f "$(PROJ_OBJ_DIR)/$*.cpp.d.tmp"; exit 1; fi
 
 LLDBWrapPython.cpp: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/modify-python-lldb.py \
                     $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/edit-swig-python-wrapper-file.py





More information about the lldb-commits mailing list