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

Rustify prepare.sh command #319

Merged
merged 4 commits into from
Aug 21, 2023
Merged

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Aug 18, 2023

Part of #315.

y.sh Outdated Show resolved Hide resolved
build_system/main.rs Outdated Show resolved Hide resolved
@GuillaumeGomez GuillaumeGomez force-pushed the build-system branch 2 times, most recently from 4202a39 to f52a4f7 Compare August 18, 2023 14:21
build_system/src/prepare.rs Outdated Show resolved Hide resolved
Ok(())
}

fn clone_and_setup<F>(repo_url: &str, checkout_commit: &str, extra: Option<F>) -> Result<(), String>
Copy link
Member

Choose a reason for hiding this comment

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

The GitRepo struct of cg_clif handles using the github zip archives for much faster downloads when curl is available as well as applying patches and writing a lockfile for reproducibility: https://github.com/bjorn3/rustc_codegen_cranelift/blob/9aa5fbf79c39867f144e5a38c53a8edd2e2069ba/build_system/prepare.rs#L96 For an initial rewrite the current code is fine too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Might be nice to have later on indeed.

@GuillaumeGomez GuillaumeGomez force-pushed the build-system branch 8 times, most recently from 303b4d2 to 0fdf7c6 Compare August 19, 2023 18:54
@GuillaumeGomez GuillaumeGomez force-pushed the build-system branch 11 times, most recently from ef689e9 to 462b928 Compare August 19, 2023 22:16
@antoyo antoyo merged commit 4ffa425 into rust-lang:master Aug 21, 2023
21 of 32 checks passed
@GuillaumeGomez GuillaumeGomez deleted the build-system branch August 22, 2023 08:23
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