aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2017-11-21 22:33:39 +0000
committerGitHub <noreply@github.com>2017-11-21 22:33:39 +0000
commit425f83b17d1c15b7486a5f321ad9bfae405f07fa (patch)
tree946dfa7862e10ab3a9b00f885f52b8f2d463c671 /src/parser.cpp
parent976415ff9df68ef8b6ecd06d271bef14d63ea90c (diff)
parent4d7fb3e8d6b24340fe9f4217e2c2c04e9a0f3a76 (diff)
Merge pull request #150 from zangent/master
Changed `string_has_extension` to `string_ends_with` and fix macOS target triple
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
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;
}