llvm.org GIT mirror llvm / f0f463e
Fix computation of LLVM_OBJ_ROOT for non-projects :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8046 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 22 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
115115 endif
116116
117117 #
118 # Set the LLVM object directory.
119 #
120 ifndef LLVM_OBJ_ROOT
121 ifdef LLVM_SRC_ROOT
122 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd)
123 else
124 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LEVEL); pwd)
125 endif
126 endif
127
128 #
118129 # Set the LLVM source directory.
119130 # It is typically the root directory of what we're compiling now.
120131 #
121132 ifndef LLVM_SRC_ROOT
122133 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
123 endif
124
125 #
126 # Set the LLVM object directory.
127 #
128 ifndef LLVM_OBJ_ROOT
129 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd)
130134 endif
131135
132136 ###########################################################################
115115 endif
116116
117117 #
118 # Set the LLVM object directory.
119 #
120 ifndef LLVM_OBJ_ROOT
121 ifdef LLVM_SRC_ROOT
122 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd)
123 else
124 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LEVEL); pwd)
125 endif
126 endif
127
128 #
118129 # Set the LLVM source directory.
119130 # It is typically the root directory of what we're compiling now.
120131 #
121132 ifndef LLVM_SRC_ROOT
122133 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
123 endif
124
125 #
126 # Set the LLVM object directory.
127 #
128 ifndef LLVM_OBJ_ROOT
129 LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd)
130134 endif
131135
132136 ###########################################################################