Skip to content

Make the DWARF version configurable. #1467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Make the DWARF version configurable. #1467

merged 1 commit into from
Oct 25, 2023

Conversation

adrian-prantl
Copy link
Contributor

This mirrors a similar change in the swift repository.

@adrian-prantl
Copy link
Contributor Author

@swift-ci test with swiftlang/swift#69254

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/swift#69254
@swift-ci test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggested cleanup to remove the unsightly !s, but otherwise this LGTM

@@ -2308,7 +2308,24 @@ extension Driver {
diagnosticsEngine.emit(.error_argument_not_allowed_with(arg: fullNotAllowedOption, other: levelOption.spelling))
}

return DebugInfo(format: format, level: level, shouldVerify: shouldVerify)
// Determine the DWARF version.
var dwarfVersion: UInt8 = 4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we just use Int, but this is okay.

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/swift#69254
@swift-ci test

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/swift#69254
@swift-ci test windows

This mirrors a similar change in the swift repository.
@adrian-prantl
Copy link
Contributor Author

test with swiftlang/swift#69254
@swift-ci test windows

@adrian-prantl
Copy link
Contributor Author

test with swiftlang/swift#69254
@swift-ci test

@adrian-prantl
Copy link
Contributor Author

@swift-ci test windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants