Skip to content

Commit

Permalink
Pass required libbz2 to linker to fix compilation error on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Oct 21, 2024
1 parent 0d02f9e commit ecb2f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ extern void cairoVMExecute(char* txns_json, char* classes_json, char* paid_fees_
extern char* setVersionedConstants(char* json);
extern void freeString(char* str);
#cgo vm_debug LDFLAGS: -L./rust/target/debug -ljuno_starknet_rs
#cgo !vm_debug LDFLAGS: -L./rust/target/release -ljuno_starknet_rs
#cgo vm_debug LDFLAGS: -L./rust/target/debug -ljuno_starknet_rs -lbz2
#cgo !vm_debug LDFLAGS: -L./rust/target/release -ljuno_starknet_rs -lbz2
*/
import "C"

Expand Down

0 comments on commit ecb2f64

Please sign in to comment.