From 9f8d8aa4db5454f5b96e90d944366c1585cd4f05 Mon Sep 17 00:00:00 2001 From: Yuka Takahashi Date: Wed, 1 Aug 2018 16:09:43 +0200 Subject: [PATCH] [cxxmodules] Reduce pcm size by not embedding all used files This reduces pcm size by 5.5 Mbytes ``` `--> du lib/*.pcm | awk -F ' ' '{sum += $1} END {print sum}' 340380 `--> du lib/*.pcm | awk -F ' ' '{sum += $1} END {print sum}' 334932 ``` --- core/dictgen/src/rootcling_impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx index 9e6dae407a3a1..fc80f0a396bd6 100644 --- a/core/dictgen/src/rootcling_impl.cxx +++ b/core/dictgen/src/rootcling_impl.cxx @@ -4441,8 +4441,8 @@ int RootClingMain(int argc, cling::Interpreter &interp = *interpPtr; clang::CompilerInstance *CI = interp.getCI(); // FIXME: Remove this once we switch cling to use the driver. This would handle -fmodules-embed-all-files for us. - CI->getFrontendOpts().ModulesEmbedAllFiles = true; - CI->getSourceManager().setAllFilesAreTransient(true); + CI->getFrontendOpts().ModulesEmbedAllFiles = false; + CI->getSourceManager().setAllFilesAreTransient(false); clang::Preprocessor &PP = CI->getPreprocessor(); clang::HeaderSearch &headerSearch = PP.getHeaderSearchInfo();