[Lldb-commits] [lldb] r121924 - in /lldb/trunk: scripts/lldb.swig source/Interpreter/Makefile
Johnny Chen
johnny.chen at apple.com
Wed Dec 15 16:01:06 PST 2010
Author: johnny
Date: Wed Dec 15 18:01:06 2010
New Revision: 121924
URL: http://llvm.org/viewvc/llvm-project?rev=121924&view=rev
Log:
Patch by Stephen Wilson to make Swig happy building on linux.
Pass the test suite on Mac OS X Snow Leopard.
Modified:
lldb/trunk/scripts/lldb.swig
lldb/trunk/source/Interpreter/Makefile
Modified: lldb/trunk/scripts/lldb.swig
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb.swig?rev=121924&r1=121923&r2=121924&view=diff
==============================================================================
--- lldb/trunk/scripts/lldb.swig (original)
+++ lldb/trunk/scripts/lldb.swig Wed Dec 15 18:01:06 2010
@@ -97,6 +97,7 @@
%}
/* Various liblldb typedefs that SWIG needs to know about. */
+#define __extension__ /* Undefine GCC keyword to make Swig happy when processing glibc's stdint.h. */
%include <stdint.h>
%include "lldb/lldb-defines.h"
%include "lldb/lldb-enumerations.h"
Modified: lldb/trunk/source/Interpreter/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Makefile?rev=121924&r1=121923&r2=121924&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Makefile (original)
+++ lldb/trunk/source/Interpreter/Makefile Wed Dec 15 18:01:06 2010
@@ -20,5 +20,7 @@
PYTHON_DIR := $(LLDB_BIN_DIR)
LLDBWrapPython.cpp:
- swig -c++ -shadow -python -I"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include" -I./. -outdir "$(LLDB_BIN_DIR)" -o LLDBWrapPython.cpp "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/lldb.swig"
+ swig -c++ -shadow -python -I"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include" \
+ -I./. -I"/usr/local/include" -D__STDC_LIMIT_MACROS -outdir "$(LLDB_BIN_DIR)" \
+ -o LLDBWrapPython.cpp "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/lldb.swig"
cp "$(PROJ_SRC_DIR)/embedded_interpreter.py" "$(PYTHON_DIR)"
More information about the lldb-commits
mailing list