[ClangImporter] Set the debug info level to full debug info.

Upstream clang has introduced a new default level for Linux that sits
between no debug info and full debug info.
This commit is contained in:
Adrian Prantl
2025-09-10 16:49:05 -07:00
parent a1cb24ee39
commit b36c9f89d5
2 changed files with 8 additions and 0 deletions

View File

@@ -2089,6 +2089,12 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
GenericArgs.push_back("-enable-experimental-feature");
GenericArgs.push_back("Embedded");
}
if (langOpts.DebuggerSupport) {
subClangImporterOpts.ExtraArgs.push_back("-gmodules");
subClangImporterOpts.ExtraArgs.push_back("-g");
}
}
/// Calculate an output filename in \p genericSubInvocation's cache path that