Skip to content

Commit 8b0b5ad

Browse files
committed
[ModuleInterface] Suppress warnings in sub-invocation.
1 parent 4a4f5de commit 8b0b5ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Frontend/ParseableInterfaceSupport.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ ParseableInterfaceModuleLoader::configureSubInvocationAndOutputPaths(
124124
SubInvocation.setTargetTriple(LangOpts.Target);
125125
SubInvocation.setClangModuleCachePath(CacheDir);
126126

127+
// Inhibit warnings from the SubInvocation since we are assuming the user
128+
// is not in a position to fix them.
129+
SubInvocation.getDiagnosticOptions().SuppressWarnings = true;
130+
127131
// Calculate an output filename that includes a hash of relevant key data, and
128132
// wire up the SubInvocation's InputsAndOutputs to contain both input and
129133
// output filenames.

0 commit comments

Comments
 (0)