mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[LLDB] Differentiate between CC1 and driver args
This commit is contained in:
@@ -2091,10 +2091,15 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
}
|
||||
|
||||
if (langOpts.DebuggerSupport) {
|
||||
subClangImporterOpts.ExtraArgs.push_back("-gmodules");
|
||||
subClangImporterOpts.ExtraArgs.push_back("-g");
|
||||
if (clangImporterOpts.DirectClangCC1ModuleBuild) {
|
||||
subClangImporterOpts.ExtraArgs.push_back("-dwarf-ext-refs");
|
||||
subClangImporterOpts.ExtraArgs.push_back("-fmodule-format=obj");
|
||||
subClangImporterOpts.ExtraArgs.push_back("-debug-info-kind=standalone");
|
||||
} else {
|
||||
subClangImporterOpts.ExtraArgs.push_back("-gmodules");
|
||||
subClangImporterOpts.ExtraArgs.push_back("-g");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// Calculate an output filename in \p genericSubInvocation's cache path that
|
||||
|
||||
Reference in New Issue
Block a user