Commit Graph

206 Commits

Author SHA1 Message Date
gnzlbg
18bf94c6eb Update all remaining targets to Ubuntu 18.04 2019-05-14 12:00:45 +02:00
gnzlbg
89a3d03aa7 Update Android Docker images Ubuntu version 2019-05-14 10:06:45 +02:00
Dan Gohman
8a5b230c14 Update to the latest wasi-sysroot.
This contains several fixes, including the FD_ISSET signature change
that the previous patch in this PR needs.
2019-04-23 21:01:39 -07:00
Alex Gaynor
55189f6aa6
Remove duplicate target from ci/build.sh
I'm almost certain this is not intentional
2019-04-14 15:54:13 -04:00
Alex Crichton
cc0310146e Add binding for new __wasilibc_find_relpath API
Added recently and will be used in libstd!
2019-04-08 07:56:47 -07:00
Alex Crichton
3f1e8b9c45 Enable the wasi target on CI
Now that wasi is in nightlies, we can run it on PRs!
2019-04-05 08:03:03 -07:00
Alex Crichton
bce4454566 Touch up style of wasi.rs 2019-03-27 13:29:18 -07:00
Alex Crichton
8662b47b27 Address some PR feedback 2019-03-27 11:21:44 -07:00
Alex Crichton
87def1fb80 Add intiial support for wasm32-unknown-wasi
This target is [being proposed][LINK] int he rust-lang/rust repository
and this is intended to get coupled with that proposal. The definitions
here all match the upstream reference-sysroot definitions and the
functions all match the reference sysroot as well. The linkage here is
described more in detail on the Rust PR itself, but in general it's
similar to musl.

Automatic verification has been implemented in the same manner as other
targets, and it's been used locally to develop this PR and catch errors
in the bindings already written (also to help match the evolving sysroot
of wasi). The verification isn't hooked up to CI yet though because
there is no wasi target distributed via rustup just yet, but once that's
done I'll file a follow-up PR to execute verification on CI.

[LINK]:
2019-03-27 09:24:48 -07:00
bors
750a7a61b4 Auto merge of #1297 - mati865:docker-images-working, r=gnzlbg
Upgrade bunch of EOL docker images to Ubuntu 18.04

When upgrading other Dockerfiles (not modified in this PR) they fail with different errors:
https://travis-ci.com/mati865/libc/jobs/181623075
https://travis-ci.com/mati865/libc/jobs/181623059
https://travis-ci.com/mati865/libc/jobs/181623067

I think it's because of these 2 commits in glibc:
https://sourceware.org/git/?p=glibc.git;a=commit;h=b05cb613e7ae507680c8d914b3e788eea782c0d6
https://sourceware.org/git/?p=glibc.git;a=commit;h=2dba5ce7b8115d6a2789bf279892263621088e74

I have no idea how to fix them so leaving it for somebody who knows what to do.
2019-03-03 22:18:11 +00:00
gnzlbg
278c56553e Check that more targets build 2019-03-03 18:44:21 +01:00
Mateusz Mikuła
481a521178 Upgrade bunch of EOL docker images to Ubuntu 18.04 2019-03-03 18:43:25 +01:00
Stefan Lankes
682b8af286 add target "hermit" to build.sh 2019-03-03 00:39:31 +01:00
gnzlbg
45c7930318 Test semver for all normal targets 2019-02-26 16:45:06 +01:00
gnzlbg
dda85056bf Fix broken links in README 2019-02-21 10:18:06 +01:00
gnzlbg
cd49efc997 Fix typo in README; do not generate .nojekyll file in gh-pages branch 2019-02-21 08:46:25 +01:00
gnzlbg
a25a42be76 Speed up documentation build by using cargo when possible 2019-02-20 18:42:34 +01:00
gnzlbg
575fdc8c0d Do not try to build documentation for apple targets from Linux 2019-02-20 17:57:01 +01:00
gnzlbg
7017701b21 Re-enable target-specific docs 2019-02-20 15:27:57 +01:00
gnzlbg
863d703910 Retry downloading artifacts to prevent spurious failures due to network issues 2019-02-20 13:01:00 +01:00
gnzlbg
7da4f477d0 cross-compile to the gnu windows targets on nightly with libstd 2019-02-20 11:21:38 +01:00
gnzlbg
6a6dd26447 Only fetch std component when there is something to fetch 2019-02-20 11:21:38 +01:00
gnzlbg
e3914cf31a Make the build script fail faster 2019-02-20 11:21:38 +01:00
gnzlbg
9bdc5122da The armv7r targets are not available on nightly 2019-02-20 11:21:38 +01:00
gnzlbg
34dd2da3f9 Run xargo only on Linux 2019-02-20 11:21:38 +01:00
gnzlbg
971027d535 Fix bitrig build 2019-02-20 11:21:38 +01:00
gnzlbg
0180e40f22 Libcore fails to build for sparc-unknown-linux-gnu 2019-02-20 11:21:38 +01:00
gnzlbg
bbe4571216 Remove non-existent uclib targets 2019-02-20 11:21:38 +01:00
gnzlbg
0ffba9f96b Test that targets without a libstd component build on CI using xargo 2019-02-20 11:21:38 +01:00
gnzlbg
a423d87417 Re-enable debug output in dox.sh and remove unused variable in runtest 2019-02-13 18:04:10 +01:00
gnzlbg
83298283c7 Generate a proper landing page for the master docs 2019-02-13 14:48:50 +01:00
gnzlbg
4a56c47a17 Increase the number of retries for curl 2019-02-09 18:22:35 +01:00
gnzlbg
8f1acf4643 Build all platforms in CI
This commit adds a `ci/build.sh` script that checks that libc builds correctly
for some common configurations (`--no-default-features`, `default`,
`extra_traits`) on most targets supported by Rust since Rust 1.13.0 (the oldest
Rust version that libc supports).

The build matrix is refactored into two stages.

The first stage is called `tools-and-build-and-tier1` and it aims to discover
issues quickly by running the documentation and linter builds, as well as
checking that the library builds correctly on all targets in all supported
channels and "problematic" Rust versions; Rust versions adding major new
features like `repr(align)`, `union`, etc. This first stage also runs
libc-test for the tier-1 targets on linux and osx. These builds finish
quickly because no emulation is necessary.

The second stage is called `tier2` and it runs libc-test for all other targets
for which we are currently able to do so.

Closes #1229 .
2019-02-07 13:44:32 +01:00
Alan Somers
38cf5b15c6 Add an integration test for the cmsg(3) functions.
Since these are defined in C as macros, they must be reimplemented in
libc as Rust functions.  They're hard to get exactly right, and they
vary from platform to platform.  The test builds custom C code that uses
the real macros, and compares its output to the Rust versions' output
for various inputs.

Skip the CMSG_NXTHDR test on sparc64 linux because it hits a Bus Error.

Issue #1239

Skip the entire cmsg test program on s390x because it dumps core
seemingly before the kernel finishes booting.

Issue #1240
2019-02-05 08:26:17 -07:00
bors
be1a8dedf0 Auto merge of #1234 - gnzlbg:android_runtest, r=gnzlbg
Update runtest-android

Keep the implementation in sync with packed_simd and stdsimd.
2019-02-05 08:36:09 +00:00
Bryant Mairs
868a85d05d Implement PartialEq,Eq for all types 2019-02-02 13:06:58 -08:00
gnzlbg
6732bf1d41 Update runtest-android 2019-01-30 15:35:08 +01:00
gnzlbg
45adbf88dd Re-enables android build jobs
Closes #1170 .
2019-01-21 20:34:43 +01:00
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