| ... | @@ -3098,7 +3098,9 @@ pub fn processExports(pt: Zcu.PerThread) !void { | ... | @@ -3098,7 +3098,9 @@ pub fn processExports(pt: Zcu.PerThread) !void { |
| 3098 | // This export might already have been sent to the linker on a previous update, in which case we need to delete it. | 3098 | // This export might already have been sent to the linker on a previous update, in which case we need to delete it. |
| 3099 | // The linker export API should be modified to eliminate this call. #23616 | 3099 | // The linker export API should be modified to eliminate this call. #23616 |
| 3100 | if (zcu.comp.bin_file) |lf| { | 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 | continue; | 3105 | continue; |
| 3104 | } | 3106 | } |
| ... | @@ -3122,8 +3124,10 @@ pub fn processExports(pt: Zcu.PerThread) !void { | ... | @@ -3122,8 +3124,10 @@ pub fn processExports(pt: Zcu.PerThread) !void { |
| 3122 | // This export might already have been sent to the linker on a previous update, in which case we need to delete it. | 3124 | // This export might already have been sent to the linker on a previous update, in which case we need to delete it. |
| 3123 | // The linker export API should be modified to eliminate this loop. #23616 | 3125 | // The linker export API should be modified to eliminate this loop. #23616 |
| 3124 | if (zcu.comp.bin_file) |lf| { | 3126 | if (zcu.comp.bin_file) |lf| { |
| 3125 | for (exports) |exp| { | 3127 | if (zcu.llvm_object == null) { |
| 3126 | lf.deleteExport(exp.exported, exp.opts.name); | 3128 | for (exports) |exp| { |
| | 3129 | lf.deleteExport(exp.exported, exp.opts.name); |
| | 3130 | } |
| 3127 | } | 3131 | } |
| 3128 | } | 3132 | } |
| 3129 | continue; | 3133 | continue; |