1
Fork 0

Emit an error if -Z instrument-xray is not supported

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.
This commit is contained in:
Oleksii Lozovskyi 2022-10-02 10:55:35 +09:00
parent 8e49c84740
commit 3561dc948c
5 changed files with 25 additions and 0 deletions

View file

@ -71,6 +71,12 @@ pub struct ProfileSampleUseFileDoesNotExist<'a> {
#[diag(session_target_requires_unwind_tables)]
pub struct TargetRequiresUnwindTables;
#[derive(Diagnostic)]
#[diag(session_instrumentation_not_supported)]
pub struct InstrumentationNotSupported {
pub us: String,
}
#[derive(Diagnostic)]
#[diag(session_sanitizer_not_supported)]
pub struct SanitizerNotSupported {