mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-04 19:34:42 -04:00
Recognize dynamic library names like libraylib.so.5.0.0
This commit is contained in:
1 parent
1b143b9fa3
commit
60ef4fda4d
3 files changed
+21
-2
No files matched your search
+1
-1
@@ -5710,7 +5710,7 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node
|
||||
// working directory of the exe to the library search paths.
|
||||
// Static libraries can be linked directly with the full pathname
|
||||
//
|
||||
if (node->kind == Ast_ForeignImportDecl && string_ends_with(file_str, str_lit(".so"))) {
|
||||
if (node->kind == Ast_ForeignImportDecl && (string_ends_with(file_str, str_lit(".so")) || string_contains_string(file_str, str_lit(".so.")))) {
|
||||
*path = file_str;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user