Skip to content

Commit

Permalink
Try to not build same binaries twice
Browse files Browse the repository at this point in the history
  • Loading branch information
im-0 committed Jul 18, 2021
1 parent 2ec5ed0 commit 5a783f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion solana-testnet.spec
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,17 @@ export LZ4_LIB_DIR=%{_libdir}
# First, build binaries optimized for newer CPUs.
cp Cargo.toml.lto Cargo.toml
export RUSTFLAGS='-C target-cpu=%{validator_target_cpu}'
%{__cargo} build %{?_smp_mflags} -Z avoid-dev-deps --frozen --release
%{__cargo} build %{?_smp_mflags} -Z avoid-dev-deps --frozen --release \
--package solana-validator \
--package solana-accounts-bench \
--package solana-banking-bench \
--package solana-bench-streamer \
--package solana-merkle-root-bench \
--package solana-poh-bench \
--package solana-exchange-program \
--package solana-failure-program \
--package solana-noop-program

mv target/release ./release.newer-cpus
%{__cargo} clean

Expand Down

0 comments on commit 5a783f3

Please sign in to comment.