From f5cdcd9cbcb5c4280ccc23632b45d2d03d92d812 Mon Sep 17 00:00:00 2001 From: hayashi_mas Date: Thu, 30 May 2024 14:27:10 +0900 Subject: [PATCH] merge linux and freegsd support --- sudachi/src/plugin/loader.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sudachi/src/plugin/loader.rs b/sudachi/src/plugin/loader.rs index dfba8a1e..e4d18d20 100644 --- a/sudachi/src/plugin/loader.rs +++ b/sudachi/src/plugin/loader.rs @@ -52,12 +52,7 @@ struct PluginLoader<'a, 'b, T: PluginCategory + ?Sized> { plugins: Vec<::BoxType>, } -#[cfg(target_os = "freebsd")] -fn make_system_specific_name(s: &str) -> String { - format!("lib{}.so", s) -} - -#[cfg(target_os = "linux")] +#[cfg(any(target_os = "linux", target_os = "freebsd"))] fn make_system_specific_name(s: &str) -> String { format!("lib{}.so", s) }