Simply fetching perf libs
This commit is contained in:
parent
8dba53e494
commit
183178681d
1
build.rs
1
build.rs
|
@ -11,5 +11,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
if !env::var("CARGO_FEATURE_ERASURE").is_err() {
|
if !env::var("CARGO_FEATURE_ERASURE").is_err() {
|
||||||
println!("cargo:rustc-link-lib=dylib=Jerasure");
|
println!("cargo:rustc-link-lib=dylib=Jerasure");
|
||||||
|
println!("cargo:rustc-link-lib=dylib=gf_complete");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,12 +45,6 @@ apps:
|
||||||
command: solana-client-demo
|
command: solana-client-demo
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
solana-perf-package:
|
|
||||||
plugin: dump
|
|
||||||
build-attributes: [no-system-libraries]
|
|
||||||
source: https://solana-perf.s3.amazonaws.com/master/x86_64-unknown-linux-gnu/solana-perf.tgz
|
|
||||||
prime:
|
|
||||||
- solana-perf-HEAD.txt
|
|
||||||
solana-cuda:
|
solana-cuda:
|
||||||
plugin: rust
|
plugin: rust
|
||||||
rust-channel: stable
|
rust-channel: stable
|
||||||
|
@ -62,9 +56,7 @@ parts:
|
||||||
- usr/lib/libgf_complete.so.1
|
- usr/lib/libgf_complete.so.1
|
||||||
- usr/lib/libJerasure.so.2
|
- usr/lib/libJerasure.so.2
|
||||||
override-build: |
|
override-build: |
|
||||||
cp -f $SNAPCRAFT_STAGE/libcuda_verify_ed25519.a .
|
./fetch-perf-libs.sh
|
||||||
cp -f $SNAPCRAFT_STAGE/libJerasure.so .
|
|
||||||
cp -f $SNAPCRAFT_STAGE/libgf_complete.so .
|
|
||||||
snapcraftctl build
|
snapcraftctl build
|
||||||
mv $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode $SNAPCRAFT_PART_INSTALL
|
mv $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode $SNAPCRAFT_PART_INSTALL
|
||||||
rm -rf $SNAPCRAFT_PART_INSTALL/bin/*
|
rm -rf $SNAPCRAFT_PART_INSTALL/bin/*
|
||||||
|
@ -72,8 +64,6 @@ parts:
|
||||||
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
|
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
|
||||||
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
|
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
|
||||||
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
|
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
|
||||||
after:
|
|
||||||
- solana-perf-package
|
|
||||||
solana:
|
solana:
|
||||||
plugin: rust
|
plugin: rust
|
||||||
rust-channel: stable
|
rust-channel: stable
|
||||||
|
|
Loading…
Reference in New Issue