Skip to content

have a buildbot that test compile for multiple targets #22794

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

Closed
semarie opened this issue Feb 25, 2015 · 3 comments
Closed

have a buildbot that test compile for multiple targets #22794

semarie opened this issue Feb 25, 2015 · 3 comments

Comments

@semarie
Copy link
Contributor

semarie commented Feb 25, 2015

Having a buildbot that try to compile multiple targets could help for detect commits that would break targets without dedicated buildbots (in mind it is openbsd target, but it could apply to others, like dragonfly for example).

The purpose isn't to run a fully test suite (it isn't possible for all targets without a dedicated buildbot) but only ensure that the compilation don't break. It would at least be better than today, where you can break something without known.

It would help commiters to ensure that their PR don't break too badly uncommon targets.

@semarie
Copy link
Contributor Author

semarie commented Mar 1, 2015

I currently take a look at reducing the toolchain needed when cross-building some libraries.
It should be possible to build several libs without any cross-linking, by forcing building rlib instead of dylib crates.

Using this method, under openbsd I am able to build TARGET_CRATES of dragonfly (libc, std, flate, arena, term, serialize, getopts, collections, test, rand, log, graphviz, core, rbml, alloc, unicode, and rustc_bitflags), by passing RUSTFLAGS_{crate}=--crate-type rlib at make invocation.

Manishearth added a commit to Manishearth/rust that referenced this issue Mar 1, 2015
…hton

 this is the same problem as openbsd (rust-lang#22792).
without the patch, liblibc don't build.

@mneumann please comment.
I have encountered this problem while building some rust libs with `target=x86_64-unknown-dragonfly` (while working on rust-lang#22794)
@steveklabnik
Copy link
Member

Triage: I don't believe that this is something that's been done, and I'm not sure it's something that there's plans to do.

@alexcrichton
Copy link
Member

Given that we now have bots cross-compiling to FreeBSD and NetBSD, I think this is done :)

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

No branches or pull requests

3 participants