Skip to content

Commit

Permalink
Use 1 codegen unit to eliminate variance
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 7, 2023
1 parent 1d63a5c commit 65100f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-binary-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
python3 x.py build library --stage 0
cp -r ./build/x86_64-unknown-linux-gnu/stage0/bin ./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin
cp -r ./build/x86_64-unknown-linux-gnu/stage0/lib/*.so ./build/x86_64-unknown-linux-gnu/stage0-sysroot/lib
./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin/rustc -O foo.rs -o binary-reference
./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin/rustc -O -Ccodegen-units=1 foo.rs -o binary-reference
- name: Build binary with PR version of backtrace
run: |
cd library/backtrace
Expand All @@ -52,7 +52,7 @@ jobs:
python3 x.py build library --stage 0
cp -r ./build/x86_64-unknown-linux-gnu/stage0/bin ./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin
cp -r ./build/x86_64-unknown-linux-gnu/stage0/lib/*.so ./build/x86_64-unknown-linux-gnu/stage0-sysroot/lib
./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin/rustc -O foo.rs -o binary-updated
./build/x86_64-unknown-linux-gnu/stage0-sysroot/bin/rustc -O -Ccodegen-units=1 foo.rs -o binary-updated
- name: Display binary size
run: |
ls -la binary-*
Expand Down

0 comments on commit 65100f1

Please sign in to comment.