@@ -3867,7 +3867,7 @@ fn createModule(
3867
3867
const path = try arena .dupe (u8 , test_path .items );
3868
3868
switch (info .preferred_mode ) {
3869
3869
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3870
- .dynamic = > if (info .needed )
3870
+ .dynamic = > if (info .needed or target . isDarwin () )
3871
3871
try create_module .resolved_system_libs .append (arena , .{
3872
3872
.name = lib_name ,
3873
3873
.lib = .{
@@ -3907,7 +3907,7 @@ fn createModule(
3907
3907
const path = try arena .dupe (u8 , test_path .items );
3908
3908
switch (info .fallbackMode ()) {
3909
3909
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3910
- .dynamic = > if (info .needed )
3910
+ .dynamic = > if (info .needed or target . isDarwin () )
3911
3911
try create_module .resolved_system_libs .append (arena , .{
3912
3912
.name = lib_name ,
3913
3913
.lib = .{
@@ -3947,7 +3947,7 @@ fn createModule(
3947
3947
const path = try arena .dupe (u8 , test_path .items );
3948
3948
switch (info .preferred_mode ) {
3949
3949
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3950
- .dynamic = > if (info .needed )
3950
+ .dynamic = > if (info .needed or target . isDarwin () )
3951
3951
try create_module .resolved_system_libs .append (arena , .{
3952
3952
.name = lib_name ,
3953
3953
.lib = .{
@@ -3977,7 +3977,7 @@ fn createModule(
3977
3977
const path = try arena .dupe (u8 , test_path .items );
3978
3978
switch (info .fallbackMode ()) {
3979
3979
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3980
- .dynamic = > if (info .needed )
3980
+ .dynamic = > if (info .needed or target . isDarwin () )
3981
3981
try create_module .resolved_system_libs .append (arena , .{
3982
3982
.name = lib_name ,
3983
3983
.lib = .{
0 commit comments