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

rustbuild: Support cross rust-docs packages #32751

Merged
merged 4 commits into from
Apr 9, 2016

Conversation

alexcrichton
Copy link
Member

Right now if you configure multiple hosts rustbuild will only build
documentation for the build triple, but we've got all the support necessary to
build documentation for different architectures as well. This commit
reinterprets the target field of doc Step instances to be the target of the
documentation rather than the target of the rustdoc/tool being run.

This should enable make dist to start producing a bunch of rust-docs
packages for all the cross architectures that rustbuild is producing now.

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

let dst = distdir(build).join("doc").join(&build.package_vers);
t!(fs::create_dir_all(&dst));
cp_r(&src, &dst);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this directory build/doc? If this is being done for all targets then won't they overwrite each other?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah this is build/doc, which I think is just what we upload to the S3 bucket, which in turn buildbot filters to just upload one of these? I was hoping the host == build.config.build would filter this build at least and we'd only copy one into place.

@bors
Copy link
Contributor

bors commented Apr 6, 2016

☔ The latest upstream changes (presumably #32767) made this pull request unmergeable. Please resolve the merge conflicts.

Also helps provide context if it fails.
Building with `--target foo` should fail because that target wasn't actually
validated.
Right now if you configure multiple hosts rustbuild will only build
documentation for the build triple, but we've got all the support necessary to
build documentation for different architectures as well. This commit
reinterprets the `target` field of doc `Step` instances to be the target of the
documentation rather than the target of the rustdoc/tool being run.

This should enable `make dist` to start producing a bunch of `rust-docs`
packages for all the cross architectures that rustbuild is producing now.
Not much new, just bringing everything along.
@brson
Copy link
Contributor

brson commented Apr 7, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Apr 7, 2016

📌 Commit 5b29f9a has been approved by brson

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 8, 2016
 Right now if you configure multiple hosts rustbuild will only build
documentation for the build triple, but we've got all the support necessary to
build documentation for different architectures as well. This commit
reinterprets the `target` field of doc `Step` instances to be the target of the
documentation rather than the target of the rustdoc/tool being run.

This should enable `make dist` to start producing a bunch of `rust-docs`
packages for all the cross architectures that rustbuild is producing now.
@bors
Copy link
Contributor

bors commented Apr 8, 2016

⌛ Testing commit 5b29f9a with merge 1779057...

bors added a commit that referenced this pull request Apr 8, 2016
rustbuild: Support cross rust-docs packages

Right now if you configure multiple hosts rustbuild will only build
documentation for the build triple, but we've got all the support necessary to
build documentation for different architectures as well. This commit
reinterprets the `target` field of doc `Step` instances to be the target of the
documentation rather than the target of the rustdoc/tool being run.

This should enable `make dist` to start producing a bunch of `rust-docs`
packages for all the cross architectures that rustbuild is producing now.
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.

4 participants