File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3098,7 +3098,9 @@ pub fn processExports(pt: Zcu.PerThread) !void {
3098
3098
// This export might already have been sent to the linker on a previous update, in which case we need to delete it.
3099
3099
// The linker export API should be modified to eliminate this call. #23616
3100
3100
if (zcu .comp .bin_file ) | lf | {
3101
- lf .deleteExport (exp .exported , exp .opts .name );
3101
+ if (zcu .llvm_object == null ) {
3102
+ lf .deleteExport (exp .exported , exp .opts .name );
3103
+ }
3102
3104
}
3103
3105
continue ;
3104
3106
}
@@ -3122,8 +3124,10 @@ pub fn processExports(pt: Zcu.PerThread) !void {
3122
3124
// This export might already have been sent to the linker on a previous update, in which case we need to delete it.
3123
3125
// The linker export API should be modified to eliminate this loop. #23616
3124
3126
if (zcu .comp .bin_file ) | lf | {
3125
- for (exports ) | exp | {
3126
- lf .deleteExport (exp .exported , exp .opts .name );
3127
+ if (zcu .llvm_object == null ) {
3128
+ for (exports ) | exp | {
3129
+ lf .deleteExport (exp .exported , exp .opts .name );
3130
+ }
3127
3131
}
3128
3132
}
3129
3133
continue ;
You can’t perform that action at this time.
0 commit comments