Comments (7)
I just remember we have BOOTSTRAP_SKIP_TARGET_SANITY
for this. You could simply execute BOOTSTRAP_SKIP_TARGET_SANITY=1 x check library/std --target=aarch64-kmc-solid_asp3
which should work just fine.
I need to list/document all these configurations somewhere..
from rust.
Ah thanks. I did not know about BOOTSTRAP_SKIP_TARGET_SANITY
. This does allow me to check all the libstd targets.
from rust.
This check is done for all targets:
rust/src/bootstrap/src/core/sanity.rs
Line 181 in 2dceda4
from rust.
Hm, well i did a bunch of checks on "weird" (aka tier 3?) targets and this was the only one that was a blocker for me. x86_64-unknown-hermit
, wasm32-unknown-unknown
, x86_64-fortanix-unknown-sgx
, etc all worked fine.
EDIT to say that I'm interested in testing libstd and not so much in no_std
targets.
from rust.
Wasm32 is explicitly excluded from this requirement a couple lines above the linked code. For the rest of the targets it may be that they use gcc rather than target-triple-gcc as C compiler by default, thus seemingly working, but producing object files for the wrong OS. The solid target spec explicitly specifies aarch64-kmc-elf-gcc as linker.
from rust.
But in this case they definitely aren't used. An empty file with the executable bit set definitely isn't producing any output.
from rust.
This can be worked around by creating empty files, marking them as executable and putting them in PATH because they're never actually called.
This seems to be more of a workaround than a proper solution (not really sure of there are any). And makes bootstrap more complicated to avoid it's own rules.
Perhaps we could make some adjustments to the target sanity check, but then there might be complications as mentioned by bjorn3:
Note that on many targets it actually is needed even for check mode as build scripts will still compile some C code even in check mode.
from rust.
Related Issues (20)
- Triggering 'this path really should be doomed...' error
- Windows: Consider disallowing `.bat` and `.cmd` files in `Command::new` HOT 6
- Add a check against multiple `only-` directives in the same line HOT 7
- Bikeshedding the 'gen' keyword & syntax HOT 16
- `RUST_BACKTRACE=full` loop with `-Cpanic=abort` on `aarch64-unknown-linux-gnu` HOT 18
- Tracking Issue for RFC 3593: Reserve unprefixed guarded string literals in Edition 2024
- Tracking Issue for RFC 3606: Drop temporaries in tail expressions before local variables HOT 2
- Tracking Issue for RFC 3550: New range types
- Tracking Issue for updating `expr` macro fragment specifier for Rust 2024 HOT 7
- Tracking Issue for RFC 3484: Unsafe Extern Blocks HOT 1
- Tracking Issue for "don't special case diverging blocks"
- Tracking Issue for Rust 2024: Make `!` fall back to `!`
- Tracking Issue for Rust 2024: Cargo MSRV-dependent dependency version resolution HOT 1
- Tracking Issue for Rust 2024: Cargo remove implicit features
- Tracking Issue for Rust 2024: rustfmt enable `overflow_delimited_expr` HOT 9
- Tracking Issue for Rust 2024: Cargo deprecations HOT 2
- Tracking Issue for RFC 3325: unsafe attributes
- Tracking Issue for Rust 2024: Disallow references to static mut
- Tracking Issue for Rust 2024: `Box<[T]> (and Box<[T; N]>): IntoIter`
- compiletest silently fails on a name-value directive with a known name but missing colon but does not report an error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.