Since Clang respect SDKROOT some may set it do different than default SDK. Also this makes possible to use clang from Xcode w/o installing Command Line Tools.
If it is not defined (empty) everything remain as it was before. NOTE: Actually Clang/LLVM themselves build with SDKROOT just fine, only lldb don't. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index cb37236..19714cd 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,10 @@ CPP.Flags += $(PYTHON_INC_DIR) endif ifeq ($(HOST_OS),Darwin) -CPP.Flags += -F/System/Library/Frameworks -F/System/Library/PrivateFrameworks -CPP.Flags += -I/usr/include/libxml2 +CPP.Flags += $(subst -I,-I$(SDKROOT),$(PYTHON_INC_DIR)) +CPP.Flags += -F$(SDKROOT)/System/Library/Frameworks +CPP.Flags += -F$(SDKROOT)/System/Library/PrivateFrameworks +CPP.Flags += -I$(SDKROOT)/usr/include/libxml2 endif ifdef LLDB_VENDOR CPP.Flags += -DLLDB_VENDOR='"$(LLDB_VENDOR) "'
_______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
