Skip to content

Initialize the Swift CompilerInstance with the triple from the load commands. #3634

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
Dec 9, 2021

Conversation

adrian-prantl
Copy link

The serialized triple is the triple of the last binary __swiftast
section that was processed. Instead of relying on the section contents
order, we overwrite the triple in the CompilerInvocation with the
triple recovered from the binary.

This should fix issues such as thew one reported in https://forums.swift.org/t/lldb-not-honoring-minimum-platform-version-for-spm-packages/53607

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

Looks like this breaks linux

@adrian-prantl
Copy link
Author

preset=lldb-pull-request
@swift-ci Please test with preset macOS Platform

@adrian-prantl
Copy link
Author

preset=lldb-pull-request
@swift-ci test with preset

@adrian-prantl
Copy link
Author

@JDevlieghere what am I doing wrong with the preset?

@adrian-prantl
Copy link
Author

@swift-ci test

…ommands.

The serialized triple is the triple of the last binary __swiftast
section that was processed. Instead of relying on the section contents
order, we overwrite the triple in the CompilerInvocation with the
triple recovered from the binary.
@adrian-prantl
Copy link
Author

preset=lldb-pull-request
@swift-ci Please test with preset macOS Platform

@adrian-prantl
Copy link
Author

preset=lldb-pull-request
@swift-ci Please test with preset macOS Platform

@JDevlieghere
Copy link

@JDevlieghere what am I doing wrong with the preset?

I'm not sure, I thought this is how it's supposed to be used. I'm sure @shahmishal will know!

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 9d92e4f into swiftlang:stable/20210726 Dec 9, 2021
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.

4 participants