Skip to content

Fix data layout in custom target used for testing#454

Merged
phil-opp merged 1 commit into
masterfrom
fix-data-layout
Feb 2, 2024
Merged

Fix data layout in custom target used for testing#454
phil-opp merged 1 commit into
masterfrom
fix-data-layout

Conversation

@phil-opp

@phil-opp phil-opp commented Feb 2, 2024

Copy link
Copy Markdown
Member

Fixes the test errors on CI.

@Freax13 Freax13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thanks!

Out of curiosity, do you happen to know why the "p270:32:32..." specs are necessary? If my understanding of https://llvm.org/docs/LangRef.html#data-layout is correct, they specify 32-bit address spaces, and it's not immediately obvious to me what that's useful for.

@phil-opp

phil-opp commented Feb 2, 2024

Copy link
Copy Markdown
Member Author

I don't know why/if this part is necessary, but the Rust compiler enforces since rust-lang/rust#120062 that the data-layout matches the layout of the LLVM target exactly.

@phil-opp phil-opp merged commit 3eb9c22 into master Feb 2, 2024
@phil-opp phil-opp deleted the fix-data-layout branch February 2, 2024 11:36
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.

2 participants