Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 6d3de50

Browse files
committed
修正库加载路径格式,去掉前缀“lib”以符合Linux共享库命名规范。
1 parent 0869bdf commit 6d3de50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpreter/library_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn get_library_path(lib_name: &str) -> PathBuf {
3939
}
4040
#[cfg(not(target_os = "windows"))]
4141
{
42-
path.push(format!("lib{}.so", lib_name));
42+
path.push(format!("{}.so", lib_name));
4343
}
4444

4545
debug_println(&format!("尝试加载库文件: {:?}", path));

0 commit comments

Comments
 (0)