Skip to content

Instantly share code, notes, and snippets.

@EricRahm
Created Apr 27, 2020
Embed
What would you like to do?
Fx Builds: Rust nightly vs 1.43 stable
#!/usr/bin/env bash
# Switch to the stable builds
rustup default stable
rustc -V
cargo -V
cat .mozconfig
echo ""
echo "Baseline run without without bytecode optimization"
echo "=================================================="
# Baseline run
echo -n "Initial run to populate ccache..."
./mach clobber --full
./mach -l build.log build > /dev/null
echo "done"
multitime -q -n 6 -r 'echo done && echo -n clobbering... && ./mach clobber --full && echo done && echo -n building...' ./mach -l build.log build
echo ""
echo "Running with nightly"
echo "===================="
# Switch to the nightly builds
rustup default nightly
rustc -V
cargo -V
# Baseline run
echo -n "Initial run with nightly to populate ccache..."
./mach clobber --full
./mach -l build.log build > /dev/null
echo "done"
multitime -q -n 6 -r 'echo done && echo -n clobbering... && ./mach clobber --full && echo done && echo -n building...' ./mach -l build.log build
rustup default stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment