Files
clang-p2996/clang/test/Driver/modules-cache-path.m
Alex Brachet fac39d14b1 [clang] Allow CLANG_MODULE_CACHE_PATH env var to override module caching behavior
CLANG_MODULE_CACHE_PATH can be used to change where clang should
put the module cache, or can be set to "" to disable caching entirely.

Differential revision: https://reviews.llvm.org/D126678
2022-06-09 16:55:37 +00:00

11 lines
479 B
Matlab

// RUN: %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=