mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #71729 from kubamracek/embedded-dwarf-types
[embedded] Promote -g to -gdwarf-types by default on embedded Swift
This commit is contained in:
@@ -3276,6 +3276,10 @@ bool CompilerInvocation::parseArgs(
|
||||
SILOpts.EmbeddedSwift = true;
|
||||
// OSSA modules are required for deinit de-virtualization.
|
||||
SILOpts.EnableOSSAModules = true;
|
||||
// -g is promoted to -gdwarf-types in embedded Swift
|
||||
if (IRGenOpts.DebugInfoLevel == IRGenDebugInfoLevel::ASTTypes) {
|
||||
IRGenOpts.DebugInfoLevel = IRGenDebugInfoLevel::DwarfTypes;
|
||||
}
|
||||
} else {
|
||||
if (SILOpts.NoAllocations) {
|
||||
Diags.diagnose(SourceLoc(), diag::no_allocations_without_embedded);
|
||||
|
||||
Reference in New Issue
Block a user