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

Upgrade Rust to v1.57.0 and JIT-generate Cargo config file #184

Merged
merged 11 commits into from
Dec 3, 2021

Conversation

giordano
Copy link
Member

@giordano giordano commented Dec 1, 2021

This will replace the file we currently hard-code in the Rust compiler shard.

PR to update Rust toolchain build script: JuliaPackaging/Yggdrasil#3992

@@ -93,9 +93,18 @@ function DockerRunner(workspace_root::String;
push!(workspaces, compiler_wrapper_path => "/opt/bin")

# Generate CMake and Meson files
generate_toolchain_files!(platform, envs; toolchains_path=toolchains_path)
Copy link
Member Author

Choose a reason for hiding this comment

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

Side note, the constructors of the two runners have plenty of duplication 😞

Copy link
Member Author

@giordano giordano Dec 5, 2021

Choose a reason for hiding this comment

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

Addressed by #191

cargo_config_file!(cargo_dir)
# Add to the list of mappings a subdirectory of ${CARGO_HOME}, whose content
# will be put in ${CARGO_HOME}.
push!(mappings, cargo_dir => envs["CARGO_HOME"] * "/" * randstring())
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we want to preserve the mappings argument and create a copy of it, instead of overwriting it? I don't think this argument is super critical though.

@giordano giordano force-pushed the mg/rust-toolchain branch 2 times, most recently from 4d59185 to 93eb65b Compare December 1, 2021 12:07
src/BuildToolchains.jl Outdated Show resolved Hide resolved
src/Runner.jl Outdated Show resolved Hide resolved
@giordano giordano changed the title [Runners] JIT-generate Cargo config file Upgrade Rust to v1.56.1 and JIT-generate Cargo config file Dec 2, 2021
@giordano giordano changed the title Upgrade Rust to v1.56.1 and JIT-generate Cargo config file Upgrade Rust to v1.57.0 and JIT-generate Cargo config file Dec 2, 2021
@giordano
Copy link
Member Author

giordano commented Dec 3, 2021

Alright, tests in JuliaPackaging/BinaryBuilder.jl#1121 are looking great, I'm going ahead and merging this. We may finally have a working Rust toolchain

@giordano giordano marked this pull request as ready for review December 3, 2021 01:03
@giordano giordano merged commit d7affb9 into JuliaPackaging:master Dec 3, 2021
@giordano giordano deleted the mg/rust-toolchain branch December 3, 2021 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant