Skip to content

Commit

Permalink
Include memory_cleanse helper function in build
Browse files Browse the repository at this point in the history
Including the transaction FFI code requires this helper function to be
linked in.
  • Loading branch information
jvff committed Oct 5, 2021
1 parent 337f5eb commit f5f4ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ include = [
"/depend/zcash/src/rust/include/",
"/depend/zcash/src/secp256k1/include",
"/depend/zcash/src/secp256k1",
"/depend/zcash/src/support/cleanse.cpp",
"/depend/zcash/src/support/cleanse.h",
]

[lib]
Expand Down
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn main() -> Result<()> {
.file("depend/zcash/src/script/interpreter.cpp")
.file("depend/zcash/src/script/script.cpp")
.file("depend/zcash/src/script/script_error.cpp")
.file("depend/zcash/src/support/cleanse.cpp")
.compile("libzcash_script.a");

Ok(())
Expand Down

0 comments on commit f5f4ab3

Please sign in to comment.