Skip to content

Commit 9f46d90

Browse files
committed
Add smoke test for supported-crate-types print request
1 parent efb1d7e commit 9f46d90

4 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
bin
2+
cdylib
3+
dylib
4+
lib
5+
proc-macro
6+
rlib
7+
staticlib
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin
2+
lib
3+
proc-macro
4+
rlib
5+
staticlib
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//! Basic smoke test for `--print=supported-crate-types`, which should print a newline delimited
2+
//! list of crate types supported by the given target. This test cherry-picks a few well-known
3+
//! targets as examples.
4+
//!
5+
//! Tracking issue: <https://github.com/rust-lang/rust/issues/138640>
6+
7+
// ignore-tidy-linelength
8+
9+
//@ check-pass
10+
11+
//@ revisions: wasm musl linux
12+
13+
//@[wasm] compile-flags: --target=wasm32-unknown-unknown --print=supported-crate-types -Zunstable-options
14+
//@[wasm] needs-llvm-components: wasm
15+
16+
//@[musl] compile-flags: --target=x86_64-unknown-linux-musl --print=supported-crate-types -Zunstable-options
17+
//@[musl] needs-llvm-components: x86
18+
19+
//@[linux] compile-flags: --target=x86_64-unknown-linux-gnu --print=supported-crate-types -Zunstable-options
20+
//@[linux] needs-llvm-components: x86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin
2+
cdylib
3+
lib
4+
rlib
5+
staticlib

0 commit comments

Comments
 (0)