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

base: Add separate bootstrap-cargo-home for rustc bootstrapping #82

Closed
wants to merge 1 commit into from

Conversation

no92
Copy link
Member

@no92 no92 commented Mar 31, 2024

This is needed to correctly build host-rustc in bootstrap-managarm with upstream tooling.

@no92 no92 added the enhancement New feature or request label Mar 31, 2024
@no92 no92 requested review from avdgrinten and 64 March 31, 2024 17:11
Copy link
Member

@64 64 left a comment

Choose a reason for hiding this comment

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

Could you add some further context on why a separate CARGO_HOME is needed for the host-rustc? e.g a summary of the problem that occurs when we don't do that?

@@ -97,6 +97,35 @@ def do_init(args):
os.symlink(os.path.join(args.src_root, "bootstrap.yml"), "bootstrap.link")

cfg = config_for_args(args)
if cfg.bootstrap_cargo_config_toml is not None:
Copy link
Member

Choose a reason for hiding this comment

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

It would be better to make a function rather than copy the code below

@no92
Copy link
Member Author

no92 commented Mar 31, 2024

Closing as discussed on Discord. We don't need this workaround right now, as we can just set $CARGO_HOME to a path in the build directory instead. In the future, if necessary, this could be picked up to provide multiple cargo-homes (e.g. per-package).

@no92 no92 closed this Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants