Makefile.rules: Use an absolute path to the module cache directory.

This change is NFC, but it makes it more obvious in log files what happened.

llvm-svn: 340286
This commit is contained in:
Adrian Prantl 2018-08-21 15:46:15 +00:00
parent 8a012cbabf
commit cd9f68ec05
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
# SHELL = /bin/sh -x
SRCDIR := $(shell dirname $(firstword $(MAKEFILE_LIST)))/
BUILDDIR := $(shell pwd)
THIS_FILE_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/
LLDB_BASE_DIR := $(THIS_FILE_DIR)../../../../../
@ -239,7 +240,7 @@ ifeq "$(MAKE_DWO)" "YES"
CFLAGS += -gsplit-dwarf
endif
CLANG_MODULE_CACHE_DIR := module-cache
CLANG_MODULE_CACHE_DIR := $(BUILDDIR)/module-cache
MANDATORY_MODULE_BUILD_CFLAGS := -fmodules -gmodules -fmodules-cache-path=$(CLANG_MODULE_CACHE_DIR)