We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09385f9 commit 1c1923fCopy full SHA for 1c1923f
tests/run-make/rustdoc-test-builder/rmake.rs
@@ -23,6 +23,13 @@ fn main() {
23
// ... and that we didn't panic.
24
output.assert_not_ice();
25
26
+ // Some targets (for example wasm) cannot execute doctests directly even with a runner,
27
+ // so only exercise the success path when the target can run on the host.
28
+ let target = std::env::var("TARGET").expect("TARGET must be set");
29
+ if target.contains("wasm") {
30
+ return;
31
+ }
32
+
33
// Test 2: Verify that a valid test-builder is invoked with correct arguments
34
// Build a custom test-builder that logs its arguments and forwards to rustc.
35
// Use `bare_rustc` so we compile for the host architecture even in cross builds.
0 commit comments