diff options
| author | Zachary Pierson <zacpiersonhehe@gmail.com> | 2017-11-21 16:16:53 -0600 |
|---|---|---|
| committer | Zachary Pierson <zacpiersonhehe@gmail.com> | 2017-11-21 16:16:53 -0600 |
| commit | 4d7fb3e8d6b24340fe9f4217e2c2c04e9a0f3a76 (patch) | |
| tree | e92e186e152551cf804642361ac7e69e042b3897 /src/parser.cpp | |
| parent | bcca3bf3221e1b83f804029e53855cbfc2450baf (diff) | |
Changed `string_has_extension` to `string_ends_with`.
Fixed macOS target triple.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index d39267869..fc0dd13a0 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4905,7 +4905,7 @@ bool determine_path_from_string(Parser *p, AstNode *node, String base_dir, Strin // working directory of the exe to the library search paths. // Static libraries can be linked directly with the full pathname // - if (node->kind == AstNode_ForeignImportDecl && string_has_extension(file_str, str_lit("so"))) { + if (node->kind == AstNode_ForeignImportDecl && string_ends_with(file_str, str_lit(".so"))) { *path = file_str; return true; } |