Emit a diagnostic for invalid target options
This commit is contained in:
parent
11f32b73e0
commit
934618fe47
3 changed files with 16 additions and 8 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue