Skip to content

Commit

Permalink
Merge pull request #116 from okx/dev-dumi
Browse files Browse the repository at this point in the history
fix rust version and build script
  • Loading branch information
dloghin authored Nov 20, 2024
2 parents 8bd9cdf + ee68121 commit bfa744a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
4 changes: 2 additions & 2 deletions native/build-release-gl64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

CAP=`./configure.sh | grep capability | cut -d ' ' -f 3`

rm -rf build
# rm -rf build
if [ -z "$CAP" ]; then
cmake -B build -DBUILD_TESTS=ON
else
cmake -B build -DBUILD_TESTS=ON -DCUDA_ARCH=$CAP
fi
cmake --build build -j

if [ "$1"=="-i" ]; then
if [ "$1" = "-i" ]; then
sudo cmake --install build
fi
2 changes: 1 addition & 1 deletion native/build-release-msm-bn254.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ else
fi
cmake --build build -j

if [ "$1"=="-i" ]; then
if [ "$1" = "-i" ]; then
sudo cmake --install build
fi
4 changes: 2 additions & 2 deletions wrappers/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "zeknox"
version = "0.1.0"
version = "1.0.0"
edition = "2021"
authors = [""]
authors = ["OKX"]
description = "ZEro KNOwledge Xcelerated (accelerated ZKP)"
homepage = ""
repository = "https://github.com/okx/zeknox.git"
Expand Down
17 changes: 1 addition & 16 deletions wrappers/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,10 @@ fn build_lib() {

if !libfile.exists() {
assert!(env::set_current_dir(&srcdir).is_ok());
Command::new("rm")
.args(["-r", "-f", "build"])
.output()
.expect("failed to execute process");
Command::new("mkdir")
.arg("build")
.output()
.expect("failed to execute process");
assert!(env::set_current_dir(&libdir).is_ok());
Command::new("cmake")
.arg("..")
.output()
.expect("failed to execute process");
Command::new("make")
.arg("-j")
Command::new("./build-release-gl64.sh")
.output()
.expect("failed to execute process");
assert!(env::set_current_dir(&rootdir).is_ok());

println!("{:?}", libdir);
}

Expand Down

0 comments on commit bfa744a

Please sign in to comment.