Skip to content
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

Add build instructions for cranelift backend as part of Rust repo #111827

Merged
merged 1 commit into from
May 30, 2023

Conversation

AngelicosPhosphoros
Copy link
Contributor

All other instructions assume that user works with separate repository than Rust compiler repository. When one follows default instructions, cranelift codegen tries to use different sys-root and compiler internal crates which leads to compiler errors when building it.

I needed to do all this steps while adding new intrinsic to rustc.

r? bjorn3

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 21, 2023
@rustbot
Copy link
Collaborator

rustbot commented May 21, 2023

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

@bjorn3
Copy link
Member

bjorn3 commented May 21, 2023

This makes sense to have, thanks. I think there are a couple of things that can be simplified here. I will try it later and report back with what worked.

compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
compiler/rustc_codegen_cranelift/Readme.md Outdated Show resolved Hide resolved
@AngelicosPhosphoros
Copy link
Contributor Author

@bjorn3 I updated PR. I make little different changes than some you requested, I hope that is OK.

All other instructions assume that user works with separate repository than Rust compiler repository. When one follows default instructions, cranelift codegen tries to use different sys-root and compiler internal crates which leads to compiler errors when building it.

I needed to do all this steps while adding new intrinsic to rustc.
@bjorn3
Copy link
Member

bjorn3 commented May 29, 2023

Thanks!

@bors r+ rollup=always

@bors
Copy link
Contributor

bors commented May 29, 2023

📌 Commit 38c712f has been approved by bjorn3

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 29, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request May 29, 2023
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#111558 (Move tests)
 - rust-lang#111827 (Add build instructions for cranelift backend as part of Rust repo)
 - rust-lang#111988 (Make `TyKind: Debug` have less verbose output)
 - rust-lang#112022 (Check nested obligations during coercion unify in new solver)
 - rust-lang#112057 (Suggest correct `self_ty`)
 - rust-lang#112063 (Add a test for issue 110457/incremental ICE with closures with the same span)

Failed merges:

 - rust-lang#112068 (Move tests from `ui/discrim` dir)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 3fead07 into rust-lang:master May 30, 2023
@rustbot rustbot added this to the 1.72.0 milestone May 30, 2023
@AngelicosPhosphoros AngelicosPhosphoros deleted the add_docs_to_cranelift branch May 30, 2023 09:35
bjorn3 pushed a commit to bjorn3/rust that referenced this pull request Jun 15, 2023
…anelift, r=bjorn3

Add build instructions for cranelift backend as part of Rust repo

All other instructions assume that user works with separate repository than Rust compiler repository. When one follows default instructions, cranelift codegen tries to use different sys-root and compiler internal crates which leads to compiler errors when building it.

I needed to do all this steps while adding new intrinsic to rustc.

r? bjorn3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants