diff options
author | Daniel Jasper <djasper@google.com> | 2013-09-24 09:27:13 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-09-24 09:27:13 +0000 |
commit | ca9f73812c998559c53b8215f868152caf68e2cf (patch) | |
tree | 4f73cc4d41580fe4fe0f1577d41911217bc239ae /clang/test/Modules/modular_maps.cpp | |
parent | ba7f2f7110c201e3564e89bd306e058aa9c6b881 (diff) | |
download | bcm5719-llvm-ca9f73812c998559c53b8215f868152caf68e2cf.tar.gz bcm5719-llvm-ca9f73812c998559c53b8215f868152caf68e2cf.zip |
Add -fmodule-map-file option.
With this option, arbitrarily named module map files can be specified
to be loaded as required for headers in the respective (sub)directories.
This, together with the extern module declaration allows for specifying
module maps in a modular fashion without the need for files called
"module.map".
Among other things, this allows a directory to contain two modules that
are completely independent of one another.
Review: http://llvm-reviews.chandlerc.com/D1697.
llvm-svn: 191284
Diffstat (limited to 'clang/test/Modules/modular_maps.cpp')
-rw-r--r-- | clang/test/Modules/modular_maps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Modules/modular_maps.cpp b/clang/test/Modules/modular_maps.cpp index c521fb28f72..5070f7d5bf9 100644 --- a/clang/test/Modules/modular_maps.cpp +++ b/clang/test/Modules/modular_maps.cpp @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -I %S/Inputs/modular_maps %s -verify +// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify #include "a.h" #include "b.h" // expected-error {{private header}} |