Skip to content

Commit

Permalink
fix libtfhe load on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Oct 17, 2023
1 parent 24df344 commit 9af0095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
TFHE_BUILD_DIR=${TFHE_RS_FOLDER}/target/release/
CGO_CFLAGS="-I${TFHE_BUILD_DIR}"
CGO_LDFLAGS="-L${TFHE_BUILD_DIR}"

.PHONY: build
build: build-tfhe-rs-capi
cd fhevm && go build .
Expand Down
2 changes: 1 addition & 1 deletion fhevm/tfhe.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package fhevm

/*
#cgo CFLAGS: -O3 -I../tfhe-rs/target/release
#cgo LDFLAGS: -L../tfhe-rs/target/release -l:libtfhe.a -lm
#cgo LDFLAGS: -L../tfhe-rs/target/release -ltfhe -lm
#include <tfhe.h>
Expand Down

0 comments on commit 9af0095

Please sign in to comment.