Skip to content

Commit

Permalink
macho: port search-dylibs-first test
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Jul 4, 2023
1 parent f9b6f9b commit 59feb8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/MachO/Options.zig
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ pub fn parse(arena: Allocator, args: []const []const u8, ctx: anytype) !Options
syslibroot = it.nextOrFatal(ctx);
} else if (mem.eql(u8, arg, "-search_paths_first")) {
search_strategy = .paths_first;
} else if (mem.eql(u8, arg, "-search_dylib_first")) {
} else if (mem.eql(u8, arg, "-search_dylibs_first")) {
search_strategy = .dylibs_first;
} else if (mem.eql(u8, arg, "-framework")) {
try frameworks.put(it.nextOrFatal(ctx), .{ .needed = false });
Expand Down
4 changes: 4 additions & 0 deletions test/macho.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ pub const cases = [_]Case{
.build_root = "test/macho/search-paths-first",
.import = @import("macho/search-paths-first/build.zig"),
},
.{
.build_root = "test/macho/search-dylibs-first",
.import = @import("macho/search-dylibs-first/build.zig"),
},
};

0 comments on commit 59feb8b

Please sign in to comment.