diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-12-16 02:03:06 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-12-16 02:03:06 +0000 |
commit | 13eb0eaea7351ba46584d6a86a7fc572e941dcae (patch) | |
tree | b3bdea09505f776d7555d199a47bae8755231089 | |
parent | 2e071faed8e24721dcb6d9a4ef5df3cf338f88e0 (diff) | |
download | bcm5719-llvm-13eb0eaea7351ba46584d6a86a7fc572e941dcae.tar.gz bcm5719-llvm-13eb0eaea7351ba46584d6a86a7fc572e941dcae.zip |
Patch from Stephen Wilson:
Extend Swig's include search path.
Cover both /usr/include and /usr/local/include. This should allow Swig to find
system headers such as stdint.h on all platforms we currently support.
llvm-svn: 121943
-rw-r--r-- | lldb/source/Interpreter/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/Makefile b/lldb/source/Interpreter/Makefile index 248de5e17c0..9ea9883e046 100644 --- a/lldb/source/Interpreter/Makefile +++ b/lldb/source/Interpreter/Makefile @@ -18,9 +18,16 @@ include $(LLDB_LEVEL)/Makefile LLDB_PYTHON_SWIG_CPP = $(PROJ_OBJ_ROOT)/$(BuildMode)/LLDBWrapPython.cpp LLDB_BIN_DIR := $(PROJ_OBJ_ROOT)/$(BuildMode)/bin PYTHON_DIR := $(LLDB_BIN_DIR) +LLDB_SWIG_INCLUDE_DIRS:= -I"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include" -I./. + +# We need Swig to process stdint.h, but by default it will not inspect system +# include directories. The following should cover the standard locations on +# most platforms. +LLDB_SWIG_INCLUDE_DIRS += -I"/usr/local/include" +LLDB_SWIG_INCLUDE_DIRS += -I"/usr/include" LLDBWrapPython.cpp: - swig -c++ -shadow -python -I"$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include" \ - -I./. -I"/usr/local/include" -D__STDC_LIMIT_MACROS -outdir "$(LLDB_BIN_DIR)" \ + swig -c++ -shadow -python $(LLDB_SWIG_INCLUDE_DIRS) \ + -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)" |