bottlerocket-sdk icon indicating copy to clipboard operation
bottlerocket-sdk copied to clipboard

update Rust to 1.81.0

Open bcressey opened this issue 1 year ago • 2 comments

Issue number: N/A

Description of changes: The old approach of defining our targets - which was always a hack - stopped working after https://github.com/rust-lang/rust/commit/09c076810cb7649e5817f316215010d49e78e8d7 added a check to ensure the target was either a custom target or recognized by the bootstrap toolchain.

Rather than fight it, I've extended the update-rust.sh script to regenerate custom targets that add the vendor field. The custom targets are needed both at build time and on the final system.

stage0.json went away in https://github.com/rust-lang/rust/pull/124883/commits/aa2faefe12498a6aaa8abfb9cbda5d848023dcc7, so adapt to the new stage0 file.

Testing done: Built the SDK for x86_64 and aarch64 hosts. Built the core kit for both architectures using each SDK. Verified that variants could be built and launched.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

bcressey avatar Aug 30 '24 23:08 bcressey

⬆️ force push fixes link to example config.toml

bcressey avatar Sep 05 '24 18:09 bcressey

Added a commit to update to 1.81.0, using the update-rust.sh script.

bcressey avatar Sep 09 '24 18:09 bcressey