Notably, this prevents us from doing *tons* of work to compute the
modules hash, including trying to read a darwin specific plist file off
of the system. There is a lot that needs cleaning up below this layer
too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233462
91177308-0d34-0410-b5e6-
96231b3b80d8
PP->setPreprocessedOutput(getPreprocessorOutputOpts().ShowCPP);
- PP->getHeaderSearchInfo().setModuleCachePath(getSpecificModuleCachePath());
+ if (PP->getLangOpts().Modules)
+ PP->getHeaderSearchInfo().setModuleCachePath(getSpecificModuleCachePath());
// Handle generating dependencies, if requested.
const DependencyOutputOptions &DepOpts = getDependencyOutputOpts();