aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/modules-cache-path.m
blob: 302a8bb1e3b978d1a0258e7aaa5e3324f3a3420f (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: env HOME=%t.home %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=CHECK-DEFAULT
// CHECK-DEFAULT: -fmodules-cache-path={{.*}}clang{{[/\\]+}}ModuleCache

// RUN: env CLANG_MODULE_CACHE_PATH=/dev/null \
// RUN:   %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=OVERRIDE
// OVERRIDE: -fmodules-cache-path=/dev/null

// RUN: env CLANG_MODULE_CACHE_PATH= \
// RUN:   %clang -fmodules -### %s 2>&1 | FileCheck %s -check-prefix=DISABLE
// DISABLE-NOT: -fmodules-cache-path=