CLI: fix a typo that made static/dynamic do the opposite

This commit is contained in:
Andrew Kelley 2023-08-02 22:22:41 -07:00
parent 4923e64199
commit 72fb58f107

View File

@ -2764,7 +2764,7 @@ fn buildOutputType(
info.fallbackMode(),
)) {
const path = try arena.dupe(u8, test_path.items);
switch (info.preferred_mode) {
switch (info.fallbackMode()) {
.Static => try link_objects.append(.{ .path = path }),
.Dynamic => try resolved_system_libs.append(arena, .{
.name = lib_name,
@ -2822,7 +2822,7 @@ fn buildOutputType(
info.fallbackMode(),
)) {
const path = try arena.dupe(u8, test_path.items);
switch (info.preferred_mode) {
switch (info.fallbackMode()) {
.Static => try link_objects.append(.{ .path = path }),
.Dynamic => try resolved_system_libs.append(arena, .{
.name = lib_name,