summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Driver/CC1Options.td
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-11-24 04:22:21 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-11-24 04:22:21 +0000
commit919ce235665865029d754d9b18fad5d0084aaef1 (patch)
tree9fbf1ffb708303aa64f490a3f1cd85ff53eeb24d /clang/include/clang/Driver/CC1Options.td
parent50668455a72c9ec35b26d76d873b692ac9f21367 (diff)
downloadbcm5719-llvm-919ce235665865029d754d9b18fad5d0084aaef1.tar.gz
bcm5719-llvm-919ce235665865029d754d9b18fad5d0084aaef1.zip
[modules] Add -cc1 flag -fmodules-embed-all-files.
This flag causes all files that were read by the compilation to be embedded into a produced module file. This is useful for distributed build systems that use an include scanning system to determine which files are "needed" by a compilation, and only provide those files to remote compilation workers. Since using a module can require any file that is part of that module (or anything it transitively includes), files that are not found by an include scanner can be required in a regular build using explicit modules. With this flag, only files that are actually referenced by transitively-#included files are required to be present on the build machine. llvm-svn: 253950
Diffstat (limited to 'clang/include/clang/Driver/CC1Options.td')
-rw-r--r--clang/include/clang/Driver/CC1Options.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/CC1Options.td b/clang/include/clang/Driver/CC1Options.td
index 56caea85b17..d510e19ea91 100644
--- a/clang/include/clang/Driver/CC1Options.td
+++ b/clang/include/clang/Driver/CC1Options.td
@@ -381,6 +381,9 @@ def fmodules_embed_file_EQ : Joined<["-"], "fmodules-embed-file=">,
MetaVarName<"<file>">,
HelpText<"Embed the contents of the specified file into the module file "
"being compiled.">;
+def fmodules_embed_all_files : Joined<["-"], "fmodules-embed-all-files">,
+ HelpText<"Embed the contents of all files read by this compilation into "
+ "the produced module file.">;
def fmodules_local_submodule_visibility :
Flag<["-"], "fmodules-local-submodule-visibility">,
HelpText<"Enforce name visibility rules across submodules of the same "
OpenPOWER on IntegriCloud