From 4d7fb3e8d6b24340fe9f4217e2c2c04e9a0f3a76 Mon Sep 17 00:00:00 2001 From: Zachary Pierson Date: Tue, 21 Nov 2017 16:16:53 -0600 Subject: Changed `string_has_extension` to `string_ends_with`. Fixed macOS target triple. --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') 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; } -- cgit v1.2.3