diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2023-05-12 11:40:04 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2023-08-30 20:29:24 -0400 |
| commit | 62867dc29f8772db166139d954dbe606ab28c34b (patch) | |
| tree | f761729cedf0ddb962acfc5976e158513c30b818 /src/errors.rs | |
| parent | 2b956f535e03e2ecaab3f078037ad006419f6c91 (diff) | |
| download | rust-62867dc29f8772db166139d954dbe606ab28c34b.tar.gz rust-62867dc29f8772db166139d954dbe606ab28c34b.zip | |
LTO implementation
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 693367192b1..19a967cb489 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -40,3 +40,34 @@ pub(crate) struct TiedTargetFeatures { pub span: Span, pub features: String, } + +#[derive(Diagnostic)] +#[diag(codegen_gcc_copy_bitcode)] +pub(crate) struct CopyBitcode { + pub err: std::io::Error, +} + +#[derive(Diagnostic)] +#[diag(codegen_gcc_dynamic_linking_with_lto)] +#[note] +pub(crate) struct DynamicLinkingWithLTO; + +#[derive(Diagnostic)] +#[diag(codegen_gcc_load_bitcode)] +pub(crate) struct LoadBitcode { + name: String, +} + +#[derive(Diagnostic)] +#[diag(codegen_gcc_lto_disallowed)] +pub(crate) struct LtoDisallowed; + +#[derive(Diagnostic)] +#[diag(codegen_gcc_lto_dylib)] +pub(crate) struct LtoDylib; + +#[derive(Diagnostic)] +#[diag(codegen_gcc_lto_bitcode_from_rlib)] +pub(crate) struct LtoBitcodeFromRlib { + pub gcc_err: String, +} |
