mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
3561dc948c
This is somewhat important because LLVM enables the pass based on target architecture, but support by the target OS also matters. For example, XRay attributes are processed by codegen for macOS targets, but Apple linker fails to process relocations in XRay data sections, so the feature as a whole is not supported there for the time being.
10 lines
303 B
Rust
10 lines
303 B
Rust
// Verifies that `-Z instrument-xray` cannot be used with unsupported targets,
|
|
//
|
|
// needs-llvm-components: x86
|
|
// compile-flags: -Z instrument-xray --target x86_64-apple-darwin
|
|
// error-pattern: error: XRay instrumentation is not supported for this target
|
|
|
|
#![feature(no_core)]
|
|
#![no_core]
|
|
#![no_main]
|