diff options
| author | Bryanskiy <ivakin.kir@gmail.com> | 2024-09-30 21:07:36 +0300 |
|---|---|---|
| committer | Bryanskiy <ivakin.kir@gmail.com> | 2025-05-04 22:03:15 +0300 |
| commit | 7008f351b69262ebcff77b1d134f6c13be39b1a5 (patch) | |
| tree | 7d9d9970798a9151e0e713ff027f227cec94368d | |
| parent | 283e2cf80b5899344d7fc63a2a49eaf045f3a567 (diff) | |
| download | rust-7008f351b69262ebcff77b1d134f6c13be39b1a5.tar.gz rust-7008f351b69262ebcff77b1d134f6c13be39b1a5.zip | |
Initial support for dynamically linked crates
| -rw-r--r-- | src/back/lto.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/back/lto.rs b/src/back/lto.rs index e5221c7da31..faeb2643ecb 100644 --- a/src/back/lto.rs +++ b/src/back/lto.rs @@ -44,7 +44,11 @@ use crate::{GccCodegenBackend, GccContext, SyncContext, to_gcc_opt_level}; pub fn crate_type_allows_lto(crate_type: CrateType) -> bool { match crate_type { - CrateType::Executable | CrateType::Dylib | CrateType::Staticlib | CrateType::Cdylib => true, + CrateType::Executable + | CrateType::Dylib + | CrateType::Staticlib + | CrateType::Cdylib + | CrateType::Sdylib => true, CrateType::Rlib | CrateType::ProcMacro => false, } } |
