Repository navigation
Commit ffd5abc
committed
Calculate transitive JS library deps after
Previously, `getTransitiveDeps` was called inside `addFromLibrary` while
`symbolHandler` was still iterating through `symbolsNeeded` and mutating
`__deps` (such as adding `setTempRet0` for i64-returning functions
without `WASM_BIGINT`).
Compute `symbolDeps` in the `if (symbolsOnly)` block after
`symbolHandler` completes so that all direct `__deps` are populated
before traversing the dependency graph.
Split out from emscripten-core#27995.symbolHandler in --symbols-only mode. NFC1 parent da779b5 commit ffd5abc
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
| |||
629 | 628 | | |
630 | 629 | | |
631 | 630 | | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | 631 | | |
640 | 632 | | |
641 | 633 | | |
| |||
1003 | 995 | | |
1004 | 996 | | |
1005 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
1006 | 1007 | | |
1007 | 1008 | | |
1008 | 1009 | | |
| |||
0 commit comments