@@ -3806,7 +3806,7 @@ fn createModule(
3806
3806
const path = try arena .dupe (u8 , test_path .items );
3807
3807
switch (info .preferred_mode ) {
3808
3808
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3809
- .dynamic = > if (info .needed )
3809
+ .dynamic = > if (info .needed or target . isDarwin () )
3810
3810
try create_module .resolved_system_libs .append (arena , .{
3811
3811
.name = lib_name ,
3812
3812
.lib = .{
@@ -3846,7 +3846,7 @@ fn createModule(
3846
3846
const path = try arena .dupe (u8 , test_path .items );
3847
3847
switch (info .fallbackMode ()) {
3848
3848
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3849
- .dynamic = > if (info .needed )
3849
+ .dynamic = > if (info .needed or target . isDarwin () )
3850
3850
try create_module .resolved_system_libs .append (arena , .{
3851
3851
.name = lib_name ,
3852
3852
.lib = .{
@@ -3886,7 +3886,7 @@ fn createModule(
3886
3886
const path = try arena .dupe (u8 , test_path .items );
3887
3887
switch (info .preferred_mode ) {
3888
3888
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3889
- .dynamic = > if (info .needed )
3889
+ .dynamic = > if (info .needed or target . isDarwin () )
3890
3890
try create_module .resolved_system_libs .append (arena , .{
3891
3891
.name = lib_name ,
3892
3892
.lib = .{
@@ -3916,7 +3916,7 @@ fn createModule(
3916
3916
const path = try arena .dupe (u8 , test_path .items );
3917
3917
switch (info .fallbackMode ()) {
3918
3918
.static = > try create_module .link_objects .append (arena , .{ .path = path }),
3919
- .dynamic = > if (info .needed )
3919
+ .dynamic = > if (info .needed or target . isDarwin () )
3920
3920
try create_module .resolved_system_libs .append (arena , .{
3921
3921
.name = lib_name ,
3922
3922
.lib = .{
0 commit comments