Commit 3286b6e
authored
Use --whole-archive to build binaryen.js. NFC (#7994)
We were previously including `binaryen-c.cpp` twice. Once in the
libbinaryen library and once again as part of the
binaryen_js/binarn_wasm targets.
This previous method worked but pointlessly compiled binaryen-c.cpp
twice.
This new method as that advantage that I can also build with
`-sMAIN_MODULE=1` without getting duplicate symbol warnings.
An alternative to this technique would adding any single symbols from
`binaryen-c.cpp` to `EXPORTED_FUNCTIONS`.1 parent 23f7af1 commit 3286b6e
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
536 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
537 | 540 | | |
538 | 541 | | |
539 | 542 | | |
| |||
563 | 566 | | |
564 | 567 | | |
565 | 568 | | |
566 | | - | |
567 | | - | |
| 569 | + | |
| 570 | + | |
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
| |||
0 commit comments