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

Replace incomplete repository_os logic with get_host_triple #482

Merged
merged 1 commit into from Jun 19, 2022

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Apr 27, 2022

bazelbuild/rules_rust#1289 exposes a better way to figure out the right triple to use with load_arbitrary_tool. In particular, we avoid assuming that x86_64 is always the correct architecture.

@@ -6,4 +6,7 @@ load("@rules_rust//rust:repositories.bzl", "rust_repositories")
def cargo_raze_transitive_deps():
"""Loads all dependnecies from repositories required for cargo-raze"""
rules_foreign_cc_dependencies()
rust_repositories(include_rustc_srcs = True)
rust_repositories(
edition = "2018",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is needed due to bazelbuild/rules_rust#1256.

@dfreese
Copy link
Collaborator

dfreese commented Jun 18, 2022

Sorry for the delay on this, but I think the issues with upstream rules_rust have been resolved with #506, so the main thrust of this change should not have a problem now.

@dtolnay
Copy link
Contributor Author

dtolnay commented Jun 18, 2022

Rebased.

@dfreese
Copy link
Collaborator

dfreese commented Jun 19, 2022

Thanks!

@dfreese dfreese merged commit 643c08d into google:main Jun 19, 2022
@dtolnay dtolnay deleted the hosttriple branch June 19, 2022 15:31
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.

None yet

2 participants