| ... | @@ -1067,13 +1067,7 @@ fn buildSharedLib( | ... | @@ -1067,13 +1067,7 @@ fn buildSharedLib( |
| 1067 | const version: Version = .{ .major = lib.sover, .minor = 0, .patch = 0 }; | 1067 | const version: Version = .{ .major = lib.sover, .minor = 0, .patch = 0 }; |
| 1068 | const ld_basename = path.basename(comp.getTarget().standardDynamicLinkerPath().get().?); | 1068 | const ld_basename = path.basename(comp.getTarget().standardDynamicLinkerPath().get().?); |
| 1069 | const soname = if (mem.eql(u8, lib.name, "ld")) ld_basename else basename; | 1069 | const soname = if (mem.eql(u8, lib.name, "ld")) ld_basename else basename; |
| 1070 | const map_file_path = try path.join(arena, &[_][]const u8{ bin_directory.path.?, all_map_basename }); | 1070 | const map_file_path = try path.join(arena, &.{ bin_directory.path.?, all_map_basename }); |
| 1071 | const c_source_files = [1]Compilation.CSourceFile{ | | |
| 1072 | .{ | | |
| 1073 | .src_path = try path.join(arena, &[_][]const u8{ bin_directory.path.?, asm_file_basename }), | | |
| 1074 | .owner = undefined, | | |
| 1075 | }, | | |
| 1076 | }; | | |
| 1077 | | 1071 | |
| 1078 | const optimize_mode = comp.compilerRtOptMode(); | 1072 | const optimize_mode = comp.compilerRtOptMode(); |
| 1079 | const strip = comp.compilerRtStrip(); | 1073 | const strip = comp.compilerRtStrip(); |
| ... | @@ -1115,13 +1109,20 @@ fn buildSharedLib( | ... | @@ -1115,13 +1109,20 @@ fn buildSharedLib( |
| 1115 | .builtin_mod = null, | 1109 | .builtin_mod = null, |
| 1116 | }); | 1110 | }); |
| 1117 | | 1111 | |
| | 1112 | const c_source_files = [1]Compilation.CSourceFile{ |
| | 1113 | .{ |
| | 1114 | .src_path = try path.join(arena, &.{ bin_directory.path.?, asm_file_basename }), |
| | 1115 | .owner = root_mod, |
| | 1116 | }, |
| | 1117 | }; |
| | 1118 | |
| 1118 | const sub_compilation = try Compilation.create(comp.gpa, .{ | 1119 | const sub_compilation = try Compilation.create(comp.gpa, .{ |
| 1119 | .local_cache_directory = zig_cache_directory, | 1120 | .local_cache_directory = zig_cache_directory, |
| 1120 | .global_cache_directory = comp.global_cache_directory, | 1121 | .global_cache_directory = comp.global_cache_directory, |
| 1121 | .zig_lib_directory = comp.zig_lib_directory, | 1122 | .zig_lib_directory = comp.zig_lib_directory, |
| 1122 | .thread_pool = comp.thread_pool, | 1123 | .thread_pool = comp.thread_pool, |
| 1123 | .self_exe_path = comp.self_exe_path, | 1124 | .self_exe_path = comp.self_exe_path, |
| 1124 | .cache_mode = .whole, | 1125 | .cache_mode = .incremental, |
| 1125 | .config = config, | 1126 | .config = config, |
| 1126 | .root_mod = root_mod, | 1127 | .root_mod = root_mod, |
| 1127 | .root_name = lib.name, | 1128 | .root_name = lib.name, |