xref: /llvm-project/clang/test/Driver/modules-cache-path.m (revision 7fe475756b26080fe0bb02e8e317662ccc9a01f1)
1// RUN: env HOME=%t.home %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-DEFAULT
2// CHECK-DEFAULT: -fmodules-cache-path={{.*}}clang{{[/\\]+}}ModuleCache
3
4// RUN: env CLANG_MODULE_CACHE_PATH=/dev/null \
5// RUN:   %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=OVERRIDE
6// OVERRIDE: -fmodules-cache-path=/dev/null
7
8// RUN: env CLANG_MODULE_CACHE_PATH= \
9// RUN:   %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=DISABLE
10// DISABLE-NOT: -fmodules-cache-path=
11