Emit a diagnostic for invalid target options

This commit is contained in:
Ben Kimock 2024-02-03 19:57:47 -05:00
parent 11f32b73e0
commit 934618fe47
3 changed files with 16 additions and 8 deletions

View file

@ -253,3 +253,9 @@ pub struct MismatchedDataLayout<'a> {
pub llvm_target: &'a str,
pub llvm_layout: &'a str,
}
#[derive(Diagnostic)]
#[diag(codegen_llvm_invalid_target_feature_prefix)]
pub(crate) struct InvalidTargetFeaturePrefix<'a> {
pub feature: &'a str,
}