Commit Graph

168 Commits

Author SHA1 Message Date
Alex Crichton
c66221d07d
Merge pull request #1172 from piersfinlayson/master
Fix for rust-lang/rust issue #50583
2018-12-11 15:47:36 -06:00
Piers Finlayson
a01c32d6c8 Fix for rust-lang/rust issue #50583 2018-12-10 19:55:38 +00:00
Alan Somers
e88e6b99de Move FreeBSD testing from Travis/QEMU to Cirrus-CI
Fixes #1163
2018-12-07 13:11:09 -07:00
bors
aee584c3c0 Auto merge of #1130 - palfrey:strcase-various, r=alexcrichton
Add various strcase* functions and getline

Adds
* `strcasestr`
* `strcasecmp`
* `strncasecmp`
*  `getline`

I *think* they're semi-universal, but shall see what CI pops up...
2018-11-27 01:51:49 +00:00
Tom Parker-Shemilt
b46b6e2e72 Retry all curl operations 2018-11-26 21:34:43 +00:00
Tom Parker-Shemilt
0942070c31 Remove hacky Travis workaround 2018-11-26 12:07:34 +00:00
Tom Parker-Shemilt
9a04c39566 Remove non-POSIX loop construct 2018-11-24 19:27:22 +00:00
Tom Parker-Shemilt
b05e05819d Download Docker images first as that seems to work better at least locally 2018-11-24 19:18:51 +00:00
gnzlbg
92172d9161 Add SGX C types. 2018-11-20 23:15:07 +01:00
gnzlbg
37a0bd3251 Fix shellcheck issues 2018-11-20 10:25:26 +01:00
Jonathan A. Kollasch
7cd5d11494 style: allow target_arch #[cfg()] statements 2018-10-30 22:10:53 +00:00
Alex Crichton
83f78df8c6 Fix OSX builders on CI
Looks like Travis has moved on from our old images, so we're forced to
update.
2018-08-01 07:49:22 -07:00
Linus Färnstrand
5f38367da3 Add testing with align feature 2018-07-29 18:54:45 +02:00
Pascal Bach
23657074d9 provide linux/module.h in debian sparc64 build 2018-07-18 21:56:14 +02:00
Pascal Bach
1abcbda8c4 use new headers for musl build 2018-07-18 21:56:14 +02:00
Pascal Bach
aa41265f3f Update musl ci jobs to 1.1.19 2018-07-17 22:15:19 +02:00
Amanieu d'Antras
3d763ae4aa Disable test for --no-default-features on rumprun 2018-07-12 17:47:31 +01:00
Bryant Mairs
d41e62ac29 Correct path for sparc64 debian image 2018-05-31 19:24:53 -07:00
Mike Hommey
d9013273a0 Add PTHREAD_*_MUTEX_INITIALIZER_NP for glibc
`pthread_mutex_t` varies across architectures, in several ways:
- endianness alters the ordering of bytes, since the contents of the
  struct are larger than 8-bit.
- its length varies.
- the location of the mutex kind (`PTHREAD_MUTEX_RECURSIVE`,
  `PTHREAD_MUTEX_ERRORCHECK` or `PTHREAD_MUTEX_ADAPTIVE_NP`) varies
  between 32-bit and 64-bit: On 32-bit architectures, it is preceded by
  three int/unsigned int, while on 64-bit architectures, it is preceded
  by four of them.

These initializers are only available from <pthread.h> when _GNU_SOURCE
is defined.

Relax the cfg_if check in ci/style.rs to allow #[cfg(target_endian)]
tests.
2018-04-11 06:38:18 +09:00
Francis Gagné
18341fd23a Rename the dox configuration option to cross_platform_docs
The libc crate is used as a dependency of the Rust compiler. Its build
system passes `--cfg dox` to all crates when generating their
documentation. libc's documentation is generated when the build system
is asked to generate the compiler documentation because `cargo doc`
automatically documents all dependencies.

When the dox configuration option is enabled, libc disables its
dependency on the core crate and provides the necessary definitions
itself. The dox configuration option is meant for generating
documentation for a multitude of targets even if the core crate for that
target is not installed. However, when documenting the compiler, it's
not necessary to do that; we can just use core or std as usual.

This change is motivated by the changes made to the compiler in
rust-lang/rust#48171. With these changes, it's necessary to provide
implementations of the Clone and Copy traits for some primitive types in
the library that defines these traits (previously, these implementations
were provided by the compiler). Normally, these traits (and thus the
implementations) are provided by core, so any crate that uses
`#![no_core]` must now provide its own copy of the implementations.

Because libc doesn't provide its own copy of the implementations yet,
and because the compiler's build system passes `--cfg dox` to libc,
generating the documentation for the compiler fails when generating
documentation for libc. By renaming the configuration option, libc will
use core or std and will thus have the necessary definitions for the
documentation to be generated successfully.
2018-03-18 16:39:40 -04:00
Wesley Moore
c1fa4b68a8 Update FreeBSD docker CI to use FreeBSD 11.1 image 2018-03-16 08:23:01 +11:00
Wesley Moore
d3e6651ff8 Update the instructions for building a FreeBSD CI image 2018-03-15 21:22:00 +11:00
gnzlbg
f9c396803c perform ctest with and without std 2018-02-27 17:36:45 +01:00
gnzlbg
5b890a31bd fix ci script 2018-02-27 17:08:14 +01:00
gnzlbg
988843834f test --no-default-features and fix musl builds 2018-02-27 15:47:18 +01:00
Alex Crichton
ac4afe746f Switch to sparc64 to debian:stretch
Looks like ubuntu 17.04 is broken now and it fails to link on 17.10 and 18.04.
It seems to work on stretch though!
2018-01-18 11:24:40 -08:00
Alex Crichton
1f29ac3167 Move some containers to ubuntu 18.04
Apparently 17.04 is broken now?
2018-01-18 11:21:30 -08:00
Alex Crichton
6978440054 Fix wasm tests
Looks like `cargo test` is now trying to test too many files due to
rust-lang/cargo#4750 so add a clause to the wrapper to ignore the bogus ones for
now
2017-11-25 14:11:14 -08:00
Alex Crichton
4d7fa243c6 Fix the FreeBSD target
It wasn't expecting a `*.d` file to exist, now it does.
2017-11-25 13:56:29 -08:00
Sébastien Santoro
97a81d7920 Use more convenient and UNIX-agnostic shebang
Pure sh scripts should use /bin/sh as it's available on every platform.

When using bash-specific features, use env to find it, as bash can
be installed in different places according the OS.
2017-11-13 13:42:00 +00:00
Marco A L Barbosa
6fa3870e5b Run sparc64-unknown-linux-gnu tests on qemu system 2017-10-31 10:10:35 -02:00
Marco A L Barbosa
cd2e87d575 Run s390x test in qemu system instead of qemu user 2017-10-31 09:44:54 -02:00
bors
10ac3df173 Auto merge of #824 - malbarbo:x32-1, r=alexcrichton
Fixes and test for x86_64-unknown-linux-gnux32

This fixes all libc tests and almost all rustc tests (3 libstd tests and one run-pass test fails).

Fixes https://github.com/rust-lang/libc/issues/816https://github.com/rust-lang/libc/issues/816
2017-10-28 04:03:07 +00:00
bors
25fb72e359 Auto merge of #823 - malbarbo:sparc64-test, r=alexcrichton
Add sparc64-unknown-linux-gnu to CI (with disabled tests)

Tests are disabled because qemu segfaults, see https://github.com/rust-lang/libc/issues/822

The builder is still useful to catch some errors.
2017-10-28 03:34:15 +00:00
bors
c6abfc1f70 Auto merge of #821 - malbarbo:mips64el-test, r=alexcrichton
Add mips64el to CI
2017-10-28 03:04:32 +00:00
bors
84d72c659d Auto merge of #818 - malbarbo:powerpc64le-test, r=alexcrichton
Add powerpc64le to CI
2017-10-28 02:34:11 +00:00
Marco A L Barbosa
a9115d5e4b Fix android ci 2017-10-27 16:46:32 -02:00
Marco A L Barbosa
e63f46a0ce Add issue for linux x32 failing to build 2017-10-27 13:15:32 -02:00
Marco A L Barbosa
0ee3935ed3 Add x86_64-unknown-linux-gnux32 docker image 2017-10-27 11:06:14 -02:00
Marco A L Barbosa
9a0d37f517 Add sparc64-unknown-linux-gnu to CI (with disabled tests) 2017-10-27 09:09:45 -02:00
Marco A L Barbosa
56b3403fa5 Add mips64el to CI 2017-10-27 08:21:40 -02:00
Marco A L Barbosa
31309536e9 Add powerpc64le to CI 2017-10-24 19:04:02 -02:00
Alex Crichton
9029cfb9eb Add more Linux-based syscall tables
* Add syscall tables to most remaining arches in `src/unix/notbsd`
* Add aarch64/arm musl to CI
* Update dependencies
2017-10-18 15:17:00 -07:00
Alex Crichton
bccba4a996 Disable https on Android SDK fetch
Apparently it no longer works
2017-10-04 16:57:31 -07:00
Tom Kirchner
b9fdcf9467 Add support for aarch64-unknown-linux-musl
Signed-off-by: Tom Kirchner <tjk@amazon.com>
Signed-off-by: Ben Cressey <bcressey@amazon.com>
2017-09-25 14:30:52 -07:00
Alex Crichton
fbfb69b3bc Tweak x86 gnu images
Apparently the 17.10 image broke?
2017-09-19 18:19:35 -07:00
Alex Crichton
050d8c8b0f Update s3 download locations 2017-09-16 09:13:07 -07:00
Alex Crichton
d2044231dc Remove caching and fix FreeBSD tests 2017-09-05 20:18:21 -07:00
Alex Crichton
5822645eb8 Update emscripten to latest 2017-08-27 08:37:15 -07:00
Alex Crichton
22b98dedfe Add asmjs/wasm32 to CI
Rebase of #610 and also move emscripten up much higher in the hierarchy to
ensure that it doesn't have too much of a ripple effect on other platforms.

This involved moving down a good number of definitions, but hopefully was done
with care to not break anything!
2017-08-26 22:15:29 -07:00