Commit 8adabaa
committed
Zcu: don't tell linkers about exports if there are compile errors
In the best case, this is redundant work, because we aren't actually
going to emit a working binary this update. In the worst case, it causes
bugs because the linker may not have *seen* the thing being exported due
to the compile errors.
Resolves: #244171 parent ce2c939 commit 8adabaa
3 files changed
Lines changed: 28 additions & 12 deletions
File tree
- src
- Zcu
- test/cases/compile_errors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4254 | 4254 | | |
4255 | 4255 | | |
4256 | 4256 | | |
4257 | | - | |
4258 | | - | |
4259 | | - | |
4260 | | - | |
4261 | | - | |
4262 | | - | |
| 4257 | + | |
| 4258 | + | |
4263 | 4259 | | |
4264 | | - | |
| 4260 | + | |
4265 | 4261 | | |
4266 | 4262 | | |
4267 | 4263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3149 | 3149 | | |
3150 | 3150 | | |
3151 | 3151 | | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
3152 | 3157 | | |
3153 | 3158 | | |
3154 | 3159 | | |
3155 | 3160 | | |
3156 | 3161 | | |
3157 | 3162 | | |
3158 | | - | |
| 3163 | + | |
3159 | 3164 | | |
3160 | 3165 | | |
3161 | 3166 | | |
3162 | 3167 | | |
3163 | | - | |
| 3168 | + | |
3164 | 3169 | | |
3165 | 3170 | | |
3166 | 3171 | | |
| |||
3171 | 3176 | | |
3172 | 3177 | | |
3173 | 3178 | | |
| 3179 | + | |
3174 | 3180 | | |
3175 | 3181 | | |
3176 | 3182 | | |
| |||
3216 | 3222 | | |
3217 | 3223 | | |
3218 | 3224 | | |
3219 | | - | |
3220 | | - | |
3221 | | - | |
| 3225 | + | |
| 3226 | + | |
3222 | 3227 | | |
3223 | 3228 | | |
3224 | 3229 | | |
3225 | 3230 | | |
| 3231 | + | |
| 3232 | + | |
3226 | 3233 | | |
3227 | 3234 | | |
3228 | 3235 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments