Just don't even attempt to invoke sed on Windows.

llvm-svn: 347125
This commit is contained in:
Adrian Prantl 2018-11-17 01:27:47 +00:00
parent 3d6c743f4e
commit a900471d58
1 changed files with 5 additions and 0 deletions

View File

@ -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