diff --git a/Makefile.common b/Makefile.common index 3bdee2ae158..b5d1e54b65f 100644 --- a/Makefile.common +++ b/Makefile.common @@ -122,7 +122,7 @@ ifndef LLVM_OBJ_ROOT ifdef LLVM_SRC_ROOT LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd) else -LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LEVEL); pwd) +LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_ROOT); pwd) endif endif diff --git a/Makefile.rules b/Makefile.rules index 3bdee2ae158..b5d1e54b65f 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -122,7 +122,7 @@ ifndef LLVM_OBJ_ROOT ifdef LLVM_SRC_ROOT LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LLVM_SRC_ROOT); pwd) else -LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_DIR); cd $(LEVEL); pwd) +LLVM_OBJ_ROOT := $(shell cd $(BUILD_OBJ_ROOT); pwd) endif endif