File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -1073,12 +1073,14 @@ fn buildSharedLib(
1073
1073
.dirs = comp .dirs .withoutLocalCache (),
1074
1074
.thread_pool = comp .thread_pool ,
1075
1075
.self_exe_path = comp .self_exe_path ,
1076
- .cache_mode = .incremental ,
1076
+ // Because we manually cache the whole set of objects, we don't cache the individual objects
1077
+ // within it. In fact, we *can't* do that, because we need `emit_bin` to specify the path.
1078
+ .cache_mode = .none ,
1077
1079
.config = config ,
1078
1080
.root_mod = root_mod ,
1079
1081
.root_name = lib .name ,
1080
1082
.libc_installation = comp .libc_installation ,
1081
- .emit_bin = .yes_cache ,
1083
+ .emit_bin = .{ . yes_path = try bin_directory . join ( arena , &.{ basename }) } ,
1082
1084
.verbose_cc = comp .verbose_cc ,
1083
1085
.verbose_link = comp .verbose_link ,
1084
1086
.verbose_air = comp .verbose_air ,
Original file line number Diff line number Diff line change @@ -1239,12 +1239,14 @@ fn buildSharedLib(
1239
1239
.dirs = comp .dirs .withoutLocalCache (),
1240
1240
.thread_pool = comp .thread_pool ,
1241
1241
.self_exe_path = comp .self_exe_path ,
1242
- .cache_mode = .incremental ,
1242
+ // Because we manually cache the whole set of objects, we don't cache the individual objects
1243
+ // within it. In fact, we *can't* do that, because we need `emit_bin` to specify the path.
1244
+ .cache_mode = .none ,
1243
1245
.config = config ,
1244
1246
.root_mod = root_mod ,
1245
1247
.root_name = lib .name ,
1246
1248
.libc_installation = comp .libc_installation ,
1247
- .emit_bin = .yes_cache ,
1249
+ .emit_bin = .{ . yes_path = try bin_directory . join ( arena , &.{ basename }) } ,
1248
1250
.verbose_cc = comp .verbose_cc ,
1249
1251
.verbose_link = comp .verbose_link ,
1250
1252
.verbose_air = comp .verbose_air ,
Original file line number Diff line number Diff line change @@ -737,12 +737,14 @@ fn buildSharedLib(
737
737
.dirs = comp .dirs .withoutLocalCache (),
738
738
.thread_pool = comp .thread_pool ,
739
739
.self_exe_path = comp .self_exe_path ,
740
- .cache_mode = .incremental ,
740
+ // Because we manually cache the whole set of objects, we don't cache the individual objects
741
+ // within it. In fact, we *can't* do that, because we need `emit_bin` to specify the path.
742
+ .cache_mode = .none ,
741
743
.config = config ,
742
744
.root_mod = root_mod ,
743
745
.root_name = lib .name ,
744
746
.libc_installation = comp .libc_installation ,
745
- .emit_bin = .yes_cache ,
747
+ .emit_bin = .{ . yes_path = try bin_directory . join ( arena , &.{ basename }) } ,
746
748
.verbose_cc = comp .verbose_cc ,
747
749
.verbose_link = comp .verbose_link ,
748
750
.verbose_air = comp .verbose_air ,
You can’t perform that action at this time.
0 commit comments