From a900471d58fda9c5c68b0177b912a3ea174b5d18 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Sat, 17 Nov 2018 01:27:47 +0000 Subject: [PATCH] Just don't even attempt to invoke sed on Windows. llvm-svn: 347125 --- lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 028d6871edb5..90e1bf71cff0 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -253,7 +253,12 @@ ifeq "$(MAKE_DWO)" "YES" endif # Use a shared module cache when building in the default test build directory. +ifeq "$(OS)" "Windows_NT" +CLANG_MODULE_CACHE_DIR := $(BUILDDIR)/module-cache +else +# FIXME: Get sed to work on Windows here. CLANG_MODULE_CACHE_DIR := $(shell echo "$(BUILDDIR)" | sed 's/lldb-test-build.noindex.*/lldb-test-build.noindex\/module-cache-clang/') +endif ifeq "$(findstring lldb-test-build.noindex, $(BUILDDIR))" "" CLANG_MODULE_CACHE_DIR := $(BUILDDIR)/module-cache