diff options
| author | Karl Zylinski <karl@zylinski.se> | 2024-09-14 11:26:41 +0200 |
|---|---|---|
| committer | Karl Zylinski <karl@zylinski.se> | 2024-09-14 11:26:41 +0200 |
| commit | 86e291235dd7225e3ce21c916a68efba0bd9232c (patch) | |
| tree | 90f127e1a588f78447521c28e460ccf26d5a632a /src/parser.cpp | |
| parent | f9de8fdaba12746b9c458e916ba6bb9d7c5b7aa7 (diff) | |
| parent | 129d85fe7d05a41732cea3bd15b02a4286276a15 (diff) | |
Merge remote-tracking branch 'origin/master' into file-tags-without-comments
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index c2a9ff138..51da21e9d 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5938,20 +5938,6 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node do_error(node, "Unknown library collection: '%.*s'", LIT(collection_name)); return false; } - } else { -#if !defined(GB_SYSTEM_WINDOWS) - // @NOTE(vassvik): foreign imports of shared libraries that are not in the system collection on - // linux/mac have to be local to the executable for consistency with shared libraries. - // Unix does not have a concept of "import library" for shared/dynamic libraries, - // so we need to pass the relative path to the linker, and add the current - // 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")) || string_contains_string(file_str, str_lit(".so.")))) { - *path = file_str; - return true; - } -#endif } if (is_package_name_reserved(file_str)) { |