Skip to content

Commit c890f21

Browse files
committed
Limit instrument_fn codegen-llvm test to x86_64
1 parent d89e115 commit c890f21

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/codegen-llvm/instrument_fn.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// Verify the #[instrument_fn] applies the correct LLVM IR function attributes.
22
//
3+
// Limit to x86_64 as it supports all instrumentation options.
4+
//
35
//@ revisions:XRAY MCOUNT FENTRY
46
//@ add-minicore
5-
//@ compile-flags: -Copt-level=0
7+
//@ compile-flags: -Copt-level=0 --target=x86_64-unknown-linux-gnu
8+
//@ needs-llvm-components: x86
69
//@ [XRAY] compile-flags: -Zinstrument-function=xray
710
//@ [MCOUNT] compile-flags: -Zinstrument-function=mcount
8-
//@ [FENTRY] compile-flags: -Zinstrument-function=fentry --target=x86_64-unknown-linux-gnu
9-
//@ [FENTRY] needs-llvm-components: x86
11+
//@ [FENTRY] compile-flags: -Zinstrument-function=fentry
1012

1113
#![feature(no_core)]
1214
#![crate_type = "lib"]

0 commit comments

Comments
 (0)