Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sudachi/src/plugin/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ fn make_system_specific_name(s: &str) -> String {
format!("lib{}.dylib", s)
}

#[cfg(any(target_os = "ios", target_os = "tvos", target_os = "watchos", target_os = "visionos"))]
fn make_system_specific_name(_s: &str) -> String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will let fn system_specific_name return a path to a directory and it may cause a problem.
I want you to change the signature of make_system_specific_name to fn (&str) -> Option<String> and let the variable fname (in l.80) to be None in those target OSs.

String::new()
}

fn system_specific_name(s: &str) -> Option<String> {
if s.contains('.') {
None
Expand Down