[Lldb-commits] [lldb] r340286 - Makefile.rules: Use an absolute path to the module cache directory.
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 21 08:46:15 PDT 2018
Author: adrian
Date: Tue Aug 21 08:46:15 2018
New Revision: 340286
URL: http://llvm.org/viewvc/llvm-project?rev=340286&view=rev
Log:
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.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules?rev=340286&r1=340285&r2=340286&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Tue Aug 21 08:46:15 2018
@@ -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)
More information about the lldb-commits
mailing list