Commit bad2600
authored
Make -gsource-map independent of name sections and JS minification (#25238)
Previously, The `-gsource-map` flag (in addition to generating a source
map) caused a name section
to be generated in the wasm binary, and also suppressed minification of
the JS glue.
This PR makes -gsource-map independent of name sections and
minification, so it no longer does
either of those. This allows source maps to be used with fully-optimized
release builds, for use
cases such as symbolizing stack traces from production.
To get the old behavior, the `-g2` flag can be added to `-gsource-map`.
Fixes #20462
Fixes #246261 parent a264a9e commit bad2600
File tree
6 files changed
+43
-23
lines changed- test
- tools
6 files changed
+43
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8978 | 8978 | | |
8979 | 8979 | | |
8980 | 8980 | | |
| 8981 | + | |
| 8982 | + | |
8981 | 8983 | | |
8982 | | - | |
| 8984 | + | |
8983 | 8985 | | |
8984 | 8986 | | |
8985 | 8987 | | |
8986 | | - | |
| 8988 | + | |
| 8989 | + | |
| 8990 | + | |
| 8991 | + | |
| 8992 | + | |
| 8993 | + | |
| 8994 | + | |
| 8995 | + | |
| 8996 | + | |
8987 | 8997 | | |
8988 | 8998 | | |
8989 | 8999 | | |
8990 | 9000 | | |
8991 | 9001 | | |
8992 | 9002 | | |
8993 | 9003 | | |
8994 | | - | |
8995 | | - | |
| 9004 | + | |
| 9005 | + | |
8996 | 9006 | | |
8997 | 9007 | | |
8998 | 9008 | | |
8999 | 9009 | | |
9000 | 9010 | | |
9001 | 9011 | | |
9002 | | - | |
| 9012 | + | |
9003 | 9013 | | |
9004 | 9014 | | |
9005 | 9015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3145 | 3145 | | |
3146 | 3146 | | |
3147 | 3147 | | |
3148 | | - | |
3149 | | - | |
3150 | | - | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3151 | 3151 | | |
3152 | 3152 | | |
3153 | | - | |
| 3153 | + | |
3154 | 3154 | | |
3155 | 3155 | | |
3156 | 3156 | | |
3157 | | - | |
| 3157 | + | |
| 3158 | + | |
3158 | 3159 | | |
3159 | 3160 | | |
3160 | 3161 | | |
3161 | | - | |
3162 | | - | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
3163 | 3165 | | |
3164 | 3166 | | |
3165 | 3167 | | |
| |||
9250 | 9252 | | |
9251 | 9253 | | |
9252 | 9254 | | |
9253 | | - | |
| 9255 | + | |
9254 | 9256 | | |
9255 | 9257 | | |
9256 | 9258 | | |
9257 | 9259 | | |
9258 | 9260 | | |
9259 | | - | |
| 9261 | + | |
9260 | 9262 | | |
9261 | 9263 | | |
9262 | 9264 | | |
9263 | 9265 | | |
9264 | 9266 | | |
9265 | 9267 | | |
| 9268 | + | |
| 9269 | + | |
| 9270 | + | |
9266 | 9271 | | |
9267 | 9272 | | |
9268 | 9273 | | |
| |||
12383 | 12388 | | |
12384 | 12389 | | |
12385 | 12390 | | |
12386 | | - | |
| 12391 | + | |
12387 | 12392 | | |
12388 | 12393 | | |
12389 | 12394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
| 1235 | + | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| 398 | + | |
397 | 399 | | |
398 | 400 | | |
399 | | - | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
| |||
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
| 411 | + | |
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
| |||
0 commit comments