diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-28 17:38:30 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-28 17:38:30 +0000 |
commit | 095765e26d1316e00f2fe65ca1bd4c71e1fc02bd (patch) | |
tree | 245588a632e4b416b889ac4c94f4770065bf0fbb | |
parent | 1f0315462bce5cfb988255bf54b367f746870f25 (diff) |
Unbreak builds with differing object and source
directories. Patch by Sam Bishop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46453 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index a9421c6e13e..175513a4f60 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -454,8 +454,8 @@ endif LD.Flags += -L$(LibDir) -L$(LLVMLibDir) CPP.BaseFlags += -D_GNU_SOURCE -D__STDC_LIMIT_MACROS # All -I flags should go here, so that they don't confuse llvm-config. -CPP.Flags += $(patsubst %,-I%/include,$(sort \ - $(PROJ_OBJ_DIR) $(PROJ_SRC_DIR) \ +CPP.Flags += $(sort -I$(PROJ_OBJ_DIR) -I$(PROJ_SRC_DIR) \ + $(patsubst %,-I%/include,\ $(PROJ_OBJ_ROOT) $(PROJ_SRC_ROOT) \ $(LLVM_OBJ_ROOT) $(LLVM_SRC_ROOT))) \ $(CPP.BaseFlags) |