Add scripts to validate target info.#753
Conversation
|
Other solutions could be to tag images based on the toolchain version, but this might be difficult since we likely also want to tag them based on the cross release version. |
|
This could also potentially iterate over all the Dockerfiles in the |
Emilgardis
left a comment
There was a problem hiding this comment.
I think these should live in a folder, not at the root. Maybe ci ?
I'd also prefer if this wasn't bash, but rust, but we can make that transition later
Sure sounds like a good idea. I've updated it to read from the CI for the targets, and use |
Done, sounds like a perfect place.
That sounds good, since we have regex as a dependency we should have everything we need. |
|
Seems they lost x when moved |
Emilgardis
left a comment
There was a problem hiding this comment.
r+ me when executable set again
Attempts to recreate the table present in README.md, which can extract the target information for a single target or for all targets. Should currently support the following targets: - Android - glibc - musl - MinGW - FreeBSD - NetBSD - newlib Closes cross-rs#686.
|
bors r=Emilgardis |
|
Build succeeded: |
Attempts to recreate the table present in README.md, which
can extract the target information for a single target
or for all targets.
Should currently support the following targets:
Closes #686.
This produces the following table:
aarch64-linux-androidaarch64-unknown-linux-gnuaarch64-unknown-linux-muslarm-linux-androideabiarm-unknown-linux-gnueabiarm-unknown-linux-gnueabihfarm-unknown-linux-musleabiarm-unknown-linux-musleabihfarmv5te-unknown-linux-gnueabiarmv5te-unknown-linux-musleabiarmv7-linux-androideabiarmv7-unknown-linux-gnueabihfarmv7-unknown-linux-musleabihfi586-unknown-linux-gnui586-unknown-linux-musli686-linux-androidi686-pc-windows-gnui686-unknown-freebsdi686-unknown-linux-gnui686-unknown-linux-muslmips-unknown-linux-gnumips-unknown-linux-muslmips64-unknown-linux-gnuabi64mips64el-unknown-linux-gnuabi64mipsel-unknown-linux-gnumipsel-unknown-linux-muslpowerpc-unknown-linux-gnupowerpc64-unknown-linux-gnupowerpc64le-unknown-linux-gnuriscv64gc-unknown-linux-gnus390x-unknown-linux-gnusparc64-unknown-linux-gnuthumbv6m-none-eabithumbv7em-none-eabithumbv7em-none-eabihfthumbv7m-none-eabix86_64-linux-androidx86_64-pc-windows-gnux86_64-unknown-freebsdx86_64-unknown-linux-gnux86_64-unknown-linux-muslx86_64-unknown-netbsdThere's a few mild differences here, but I think they're correct:
A few notes on how this works:
libc-2.17.so).dpkgto get the package version which has the newlib version.libc.sosymbols, grepped forNetBSD.C++ Program
This may fail in the case we cannot compile a C program to begin with (AKA, newlib, which we have missing startfiles, etc.). This really doesn't matter right now, since none of these bare-metal targets support C++, although in the future we may want to add
-nostartfilesduring compilation.