diff --git a/Makefile.common b/Makefile.common index 3bdee2ae158d..b5d1e54b65f7 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 3bdee2ae158d..b5d1e54b65f7 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