diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-16 22:44:57 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-16 22:44:57 +0000 |
commit | ac35cd330ac06cce6a158e102fc9265f97476a7b (patch) | |
tree | 131604e5ae1378ad35eaa2cede2a34c597c44ff8 /lldb/packages/Python/lldbsuite/test | |
parent | 12167822be06292fb4f40b43d08388c2c06a8810 (diff) | |
download | bcm5719-llvm-ac35cd330ac06cce6a158e102fc9265f97476a7b.tar.gz bcm5719-llvm-ac35cd330ac06cce6a158e102fc9265f97476a7b.zip |
Makefile.rules: Degrade gracefully on Windows machines without sed.
llvm-svn: 347104
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index dfe573c89d7..041f21c0172 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -253,14 +253,11 @@ ifeq "$(MAKE_DWO)" "YES" endif # Use a shared module cache when building in the default test build directory. -ifeq "$(findstring lldb-test-build.noindex, $(BUILDDIR))" "" -CLANG_MODULE_CACHE_DIR := $(BUILDDIR)/module-cache -else CLANG_MODULE_CACHE_DIR := $(shell echo "$(BUILDDIR)" | sed 's/lldb-test-build.noindex.*/lldb-test-build.noindex\/module-cache-clang/') -endif -ifeq "$(CLANG_MODULE_CACHE_DIR)" "" -$(error failed to set the shared clang module cache dir) +ifeq "$(findstring lldb-test-build.noindex, $(BUILDDIR))" "" +CLANG_MODULE_CACHE_DIR := $(BUILDDIR)/module-cache +$(warning failed to set the shared clang module cache dir) endif MANDATORY_MODULE_BUILD_CFLAGS := -fmodules -gmodules -fmodules-cache-path=$(CLANG_MODULE_CACHE_DIR) |