forked from lambdaclass/noir_backend_using_gnark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 679 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FFI_LIB_PATH=./gnark_backend_ffi
check: clippy test test-go
build-go:
$ cd ${FFI_LIB_PATH}; \
go build -buildmode=c-archive -o libgnark_backend.a main.go
# Temporary solution for testing the only tests we have. We should test recurively.
test-go:
$ cd ${FFI_LIB_PATH}; \
go test -run '' gnark_backend_ffi/backend/groth16; \
go test -run '' gnark_backend_ffi/backend/plonk
build: build-go
$ RUSTFLAGS="-L${FFI_LIB_PATH}" cargo build
test: build-go
$ RUSTFLAGS="-L${FFI_LIB_PATH}" cargo test ${TEST} -- --nocapture
clippy:
$ cargo clippy --all-targets -- -D warnings
nargo:
$ cargo install --force --git https://github.com/lambdaclass/noir --branch fork nargo