Commit e0af707
authored
Improve build reproducibility of stub archives (WebAssembly#682)
Currently, the `default` target produces byte-identical binary
artifacts on Linux and macOS, except for the stub archives (e.g.
`libcrypt.a`).
This is because `llvm-ar` defaults to `--format=darwin` on macOS, which
generates an empty symbol index for an empty archive.
We can make this build completely reproducible across macOS and Linux by
specifying `--format=gnu`, which is the default used on Linux.1 parent ac020b8 commit e0af707
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
712 | 716 | | |
713 | 717 | | |
714 | | - | |
| 718 | + | |
715 | 719 | | |
716 | 720 | | |
717 | 721 | | |
| |||
875 | 879 | | |
876 | 880 | | |
877 | 881 | | |
878 | | - | |
| 882 | + | |
879 | 883 | | |
880 | 884 | | |
881 | 885 | | |
| |||
0 commit comments