diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-02 09:56:13 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-02 09:56:54 +0200 |
| commit | 76ebae2ee0b3322a9bdba30f14f87d00a22dbadb (patch) | |
| tree | f529e1a1c09eb7602103f904ba8ddc56f50fc195 /ci | |
| parent | 6def9cee009a0ce300c8625d1d11a54e4e35c3f6 (diff) | |
| download | zig-76ebae2ee0b3322a9bdba30f14f87d00a22dbadb.tar.gz zig-76ebae2ee0b3322a9bdba30f14f87d00a22dbadb.zip | |
ci: Add stage3/4 diff to aarch64-linux-release script.
Diffstat (limited to 'ci')
| -rw-r--r-- | ci/aarch64-linux-release.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ci/aarch64-linux-release.sh b/ci/aarch64-linux-release.sh index ee8ecbf470..947694ce39 100644 --- a/ci/aarch64-linux-release.sh +++ b/ci/aarch64-linux-release.sh @@ -64,6 +64,22 @@ stage3-release/bin/zig build test docs \ --zig-lib-dir "$PWD/../lib" \ -Denable-tidy +# Ensure that stage3 and stage4 are byte-for-byte identical. +stage3-release/bin/zig build \ + --prefix stage4-release \ + -Denable-llvm \ + -Dno-lib \ + -Doptimize=ReleaseFast \ + -Dstrip \ + -Dtarget=$TARGET \ + -Duse-zig-libcxx \ + -Dversion-string="$(stage3-release/bin/zig version)" + +# diff returns an error code if the files differ. +echo "If the following command fails, it means nondeterminism has been" +echo "introduced, making stage3 and stage4 no longer byte-for-byte identical." +diff stage3-release/bin/zig stage4-release/bin/zig + # Ensure that updating the wasm binary from this commit will result in a viable build. stage3-release/bin/zig build update-zig1 |
