From e842a47452223f9f3b683e0f7f9cccb48192cbb6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 22 Oct 2014 02:05:46 +0000 Subject: [modules] Initial support for explicitly loading .pcm files. Implicit module builds are not well-suited to a lot of build systems. In particular, they fare badly in distributed build systems, and they lead to build artifacts that are not tracked as part of the usual dependency management process. This change allows explicitly-built module files (which are already supported through the -emit-module flag) to be explicitly loaded into a build, allowing build systems to opt to manage module builds and dependencies themselves. This is only the first step in supporting such configurations, and it should be considered experimental and subject to change or removal for now. llvm-svn: 220359 --- clang/test/Modules/Inputs/explicit-build/c.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/Modules/Inputs/explicit-build/c.h (limited to 'clang/test/Modules/Inputs/explicit-build/c.h') diff --git a/clang/test/Modules/Inputs/explicit-build/c.h b/clang/test/Modules/Inputs/explicit-build/c.h new file mode 100644 index 00000000000..2c66a23e892 --- /dev/null +++ b/clang/test/Modules/Inputs/explicit-build/c.h @@ -0,0 +1,7 @@ +#include "b.h" + +#if !__building_module(c) +#error "should only get here when building module c" +#endif + +const int c = 3; -- cgit v1.2.3