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

Allow specifying volumes in Cross.toml. #443

Merged
merged 1 commit into from
Jul 4, 2020

Conversation

reitermarkus
Copy link
Member

No description provided.

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

LGTM

bors merge

@bors
Copy link
Contributor

bors bot commented Jul 4, 2020

Build succeeded:

@bors bors bot merged commit 5d35b3f into cross-rs:master Jul 4, 2020
@reitermarkus reitermarkus deleted the volumes branch July 4, 2020 19:06
Emilgardis added a commit to Emilgardis/cross that referenced this pull request Sep 19, 2020
@@ -152,10 +170,10 @@ pub fn run(target: &Target,
.args(&["-v", &format!("{}:/cargo:Z", cargo_dir.display())])
// Prevent `bin` from being mounted inside the Docker container.
.args(&["-v", "/cargo/bin"])
.args(&["-v", &format!("{}:/project:Z", mount_root.display())])
.args(&["-v", &format!("{}:/{}:Z", mount_root.display(), mount_root.display())])
Copy link
Contributor

Choose a reason for hiding this comment

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

This change will make it impossible to use a rustc wrapper with Cargo, which is the only way to pass custom flags due to #463, and the wrapper path needs to be absolute.

Setting it to /project/my-wrapper.sh works just fine, but if the mount point is changed, there is no easy way to pass the absolute path to the wrapper.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, actually I already have to do something different for cross builds vs. native builds, so maybe this won't be that big of a deal? It's certainly a breaking change though.

Emilgardis added a commit to Emilgardis/cross that referenced this pull request Aug 28, 2021
@Emilgardis Emilgardis added this to the v0.2.2 milestone Jun 15, 2022
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.

5 participants