2021-01-28 10:50:54 +08:00
|
|
|
// Confirm -fimplicit-modules-use-lock and -fno-implicit-modules-use-lock control
|
|
|
|
// whether building a module triggers -Rmodule-lock, indirectly checking whether
|
|
|
|
// a lock manager is being used.
|
|
|
|
//
|
|
|
|
// RUN: rm -rf %t.cache
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps \
|
2021-08-17 07:18:11 +08:00
|
|
|
// RUN: -fimplicit-modules-use-lock -Rmodule-lock -Rmodule-build \
|
2021-01-28 10:50:54 +08:00
|
|
|
// RUN: -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \
|
|
|
|
// RUN: -fsyntax-only %s -Wnon-modular-include-in-framework-module \
|
2021-08-17 07:18:11 +08:00
|
|
|
// RUN: -Werror=non-modular-include-in-framework-module \
|
|
|
|
// RUN: -verify=locks,build
|
2021-01-28 10:50:54 +08:00
|
|
|
//
|
|
|
|
// RUN: rm -rf %t.cache
|
|
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps \
|
2021-08-17 07:18:11 +08:00
|
|
|
// RUN: -fno-implicit-modules-use-lock -Rmodule-lock -Rmodule-build \
|
2021-01-28 10:50:54 +08:00
|
|
|
// RUN: -fmodules-cache-path=%t.cache -I%S/Inputs/system-out-of-date \
|
|
|
|
// RUN: -fsyntax-only %s -Wnon-modular-include-in-framework-module \
|
2021-08-17 07:18:11 +08:00
|
|
|
// RUN: -Werror=non-modular-include-in-framework-module \
|
|
|
|
// RUN: -verify=build
|
2021-01-28 10:50:54 +08:00
|
|
|
|
2021-08-17 07:18:11 +08:00
|
|
|
@import X; // locks-remark-re {{locking '{{.*}}.pcm' to build module 'X'}} \
|
|
|
|
// build-remark {{building module 'X'}} \
|
|
|
|
// build-remark {{finished building module 'X'}}
|